From: Christian Grothoff Date: Fri, 10 Mar 2017 17:44:13 +0000 (+0100) Subject: fix potential NPE X-Git-Tag: gnunet-0.11.0rc0~291^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b7f90bbe25c967235643005ef003203eac80618d;p=oweals%2Fgnunet.git fix potential NPE --- 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, { if (NULL != topology) *topology = (enum GNUNET_TESTBED_TopologyOption) cnt; - GNUNET_assert (GNUNET_TESTBED_TOPOLOGY_OPTION_END != *topology); + GNUNET_assert (GNUNET_TESTBED_TOPOLOGY_OPTION_END != (enum GNUNET_TESTBED_TopologyOption) cnt); return GNUNET_YES; } }