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

index e9328ffb83346a807030cda0f281fa3a865fa300..f463dafde76720a28de9f920d60a497537d1ee8a 100644 (file)
@@ -341,10 +341,10 @@ static void
 opstart_peer_getinfo (void *cls)
 {
   struct OperationContext *opc = cls;
-  struct PeerInfoData *data;
+  struct PeerInfoData *data = opc->data;
   struct GNUNET_TESTBED_PeerGetConfigurationMessage *msg;
 
-  GNUNET_assert (NULL != (data = opc->data));
+  GNUNET_assert (NULL != data);
   opc->state = OPC_STATE_STARTED;
   msg =
       GNUNET_TESTBED_generate_peergetconfig_msg_ (data->peer->unique_id,