From 57fbe6d730b7d74f03e7e6ef8e6470e81c130423 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 21 Jun 2013 17:49:47 +0000 Subject: [PATCH] -avoid side-effect in assertion --- src/testbed/testbed_api_peers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testbed/testbed_api_peers.c b/src/testbed/testbed_api_peers.c index 818b599d7..272175eb1 100644 --- a/src/testbed/testbed_api_peers.c +++ b/src/testbed/testbed_api_peers.c @@ -877,10 +877,10 @@ static void opstart_manage_service (void *cls) { struct OperationContext *opc = cls; + struct ManageServiceData *data = opc->data; struct GNUNET_TESTBED_ManagePeerServiceMessage *msg; - struct ManageServiceData *data; - GNUNET_assert (NULL != (data = opc->data)); + GNUNET_assert (NULL != data); msg = GNUNET_malloc (data->msize); msg->header.size = htons (data->msize); msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_MANAGE_PEER_SERVICE); -- 2.25.1