aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-10 18:44:13 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-10 18:44:13 +0100
commitb7f90bbe25c967235643005ef003203eac80618d (patch)
tree5ed5a0360ec1c543aa1d9f89bbbcf2f6227336a0 /src
parente17acf495f6c867f79774ebd571430cf16400433 (diff)
downloadgnunet-b7f90bbe25c967235643005ef003203eac80618d.tar.gz
gnunet-b7f90bbe25c967235643005ef003203eac80618d.zip
fix potential NPE
Diffstat (limited to 'src')
-rw-r--r--src/testbed/testbed_api_topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testbed/testbed_api_topology.c b/src/testbed/testbed_api_topology.c
index 544f127a9..7bc36d1b4 100644
--- a/src/testbed/testbed_api_topology.c
+++ b/src/testbed/testbed_api_topology.c
@@ -1493,7 +1493,7 @@ GNUNET_TESTBED_topology_get_ (enum GNUNET_TESTBED_TopologyOption *topology,
1493 { 1493 {
1494 if (NULL != topology) 1494 if (NULL != topology)
1495 *topology = (enum GNUNET_TESTBED_TopologyOption) cnt; 1495 *topology = (enum GNUNET_TESTBED_TopologyOption) cnt;
1496 GNUNET_assert (GNUNET_TESTBED_TOPOLOGY_OPTION_END != *topology); 1496 GNUNET_assert (GNUNET_TESTBED_TOPOLOGY_OPTION_END != (enum GNUNET_TESTBED_TopologyOption) cnt);
1497 return GNUNET_YES; 1497 return GNUNET_YES;
1498 } 1498 }
1499 } 1499 }