add assertion to make static analysis happy
authorChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 16:54:54 +0000 (17:54 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 16:54:54 +0000 (17:54 +0100)
src/cadet/gnunet-service-cadet-new_peer.c

index 350c8efaeaf42fe2e593a352269ab7d980679823..29aef6895a228dabf581bb9f74443abaf1c77241 100644 (file)
@@ -917,6 +917,7 @@ path_heap_cleanup (void *cls)
        unused paths around in the hope that we might be able to switch, even
        if the number of paths exceeds the threshold.) */
     root = GNUNET_CONTAINER_heap_peek (cp->path_heap);
+    GNUNET_assert (NULL != root);
     if (NULL !=
         GCPP_get_connection (root,
                              cp,