RPS profiler: Assert statistics handle non-NULL
authorJulius Bünger <buenger@mytum.de>
Mon, 25 Feb 2019 12:55:18 +0000 (13:55 +0100)
committerJulius Bünger <buenger@mytum.de>
Mon, 25 Feb 2019 12:55:18 +0000 (13:55 +0100)
src/rps/gnunet-rps-profiler.c

index 98fc8dccb2405030cf46c8905c1324e60d814f37..8e6fa389ad5cde34abc86dde3c78409ce79a6160 100644 (file)
@@ -2685,6 +2685,7 @@ post_profiler (struct RPSPeer *rps_peer)
                                post_test_shutdown_ready_cb,
                                stat_iterator,
                                (struct STATcls *) stat_cls);
+      GNUNET_assert (NULL != rps_peer->h_stat_get);
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                   "Requested statistics for %s (peer %" PRIu32 ")\n",
                   stat_type_strings [stat_type],