-avoid side-effect in assertion
authorChristian Grothoff <christian@grothoff.org>
Fri, 21 Jun 2013 17:49:47 +0000 (17:49 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 21 Jun 2013 17:49:47 +0000 (17:49 +0000)
src/testbed/testbed_api_peers.c

index 818b599d7ae26ecb1ef5e089b75448b1f7954417..272175eb1a51c5469854aa821fcd2f6c25b38e40 100644 (file)
@@ -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);