From 729138e7855eb5a0ff3ef54803c771d0a4c9bf57 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 21 Jun 2013 17:47:31 +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 e9328ffb8..f463dafde 100644 --- a/src/testbed/testbed_api_peers.c +++ b/src/testbed/testbed_api_peers.c @@ -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, -- 2.25.1