assert
authorChristian Grothoff <christian@grothoff.org>
Mon, 15 Mar 2010 14:16:02 +0000 (14:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 15 Mar 2010 14:16:02 +0000 (14:16 +0000)
src/util/scheduler.c

index 41cce0b45193c6ed74fcaabf228e978ac049d709..b5d998ef598c35fb6a8c224125de39b6c9f2f530 100644 (file)
@@ -1098,6 +1098,8 @@ GNUNET_SCHEDULER_add_select (struct GNUNET_SCHEDULER_Handle * sched,
 #if EXECINFO
   void *backtrace_array[MAX_TRACE_DEPTH];
 #endif
+
+  GNUNET_assert (NULL != task);
   t = GNUNET_malloc (sizeof (struct Task));
   t->callback = task;
   t->callback_cls = task_cls;