From e1cd130d656d43e49ef4e77acc1cb3a7c019f8b5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 21 Jun 2013 17:48:58 +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 f54d73766..818b599d7 100644 --- a/src/testbed/testbed_api_peers.c +++ b/src/testbed/testbed_api_peers.c @@ -97,7 +97,7 @@ static void opstart_peer_create (void *cls) { struct OperationContext *opc = cls; - struct PeerCreateData *data; + struct PeerCreateData *data = opc->data; struct GNUNET_TESTBED_PeerCreateMessage *msg; char *config; char *xconfig; @@ -106,7 +106,7 @@ opstart_peer_create (void *cls) uint16_t msize; GNUNET_assert (OP_PEER_CREATE == opc->type); - GNUNET_assert (NULL != (data = opc->data)); + GNUNET_assert (NULL != data); GNUNET_assert (NULL != data->peer); opc->state = OPC_STATE_STARTED; config = GNUNET_CONFIGURATION_serialize (data->cfg, &c_size); -- 2.25.1