From: Christian Grothoff Date: Mon, 19 Oct 2009 10:07:35 +0000 (+0000) Subject: add assertions X-Git-Tag: initial-import-from-subversion-38251~23327 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d3bcfcedf4de29dbae00b12e621789170b6aa4a8;p=oweals%2Fgnunet.git add assertions --- diff --git a/src/util/scheduler.c b/src/util/scheduler.c index ae0428a94..24ea28d2c 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -514,8 +514,11 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *cls) rs = GNUNET_NETWORK_fdset_create (); ws = GNUNET_NETWORK_fdset_create (); #ifndef MINGW + GNUNET_assert (sigpipe == NULL); sigpipe = GNUNET_DISK_pipe (GNUNET_NO); + GNUNET_assert (sigpipe != NULL); pr = GNUNET_DISK_pipe_handle (sigpipe, GNUNET_DISK_PIPE_END_READ); + GNUNET_assert (pr != NULL); shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown); shc_term = GNUNET_SIGNAL_handler_install (SIGTERM, &sighandler_shutdown); shc_quit = GNUNET_SIGNAL_handler_install (SIGQUIT, &sighandler_shutdown);