check
authorChristian Grothoff <christian@grothoff.org>
Mon, 15 Aug 2011 15:02:10 +0000 (15:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 15 Aug 2011 15:02:10 +0000 (15:02 +0000)
src/util/scheduler.c

index d7f9a293b7a9fc1589b636c3e24c3a88fcfab080..e4a31c3884a3739d8cea3a37ee6826a2487a1248 100644 (file)
@@ -1059,6 +1059,7 @@ GNUNET_SCHEDULER_add_continuation (GNUNET_SCHEDULER_Task task,
   void *backtrace_array[50];
 #endif
 
+  GNUNET_assert (NULL != task);
   GNUNET_assert ( (active_task != NULL) ||
                  (reason == GNUNET_SCHEDULER_REASON_STARTUP) );
   t = GNUNET_malloc (sizeof (struct Task));