-fix assertion, FD 0 is fine
authorChristian Grothoff <christian@grothoff.org>
Tue, 24 Dec 2013 22:24:23 +0000 (22:24 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 24 Dec 2013 22:24:23 +0000 (22:24 +0000)
src/util/scheduler.c

index 2a9623428a33a84ef9c5ced0150386c1ec2f0988..87a107dba78f526ab29dfd8d289d50d4fab436be 100644 (file)
@@ -1599,7 +1599,7 @@ GNUNET_SCHEDULER_add_file_with_priority (struct GNUNET_TIME_Relative delay,
   int real_fd;
 
   GNUNET_DISK_internal_file_handle_ (fd, &real_fd, sizeof (int));
-  GNUNET_assert (real_fd > 0);
+  GNUNET_assert (real_fd >= 0);
   return add_without_sets (
       delay, priority,
       on_read  ? real_fd : -1,