diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-24 22:24:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-24 22:24:23 +0000 |
commit | fb68c76d54e891dd7aad1e995ba60f2fccd5018f (patch) | |
tree | 42a611f7a99eeb397319d2d653f86e64af0e8107 /src/util/scheduler.c | |
parent | ca93470efe19d2c9e61376ae21d3a4d0986ae817 (diff) | |
download | gnunet-fb68c76d54e891dd7aad1e995ba60f2fccd5018f.tar.gz gnunet-fb68c76d54e891dd7aad1e995ba60f2fccd5018f.zip |
-fix assertion, FD 0 is fine
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r-- | src/util/scheduler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 2a9623428..87a107dba 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -1599,7 +1599,7 @@ GNUNET_SCHEDULER_add_file_with_priority (struct GNUNET_TIME_Relative delay, | |||
1599 | int real_fd; | 1599 | int real_fd; |
1600 | 1600 | ||
1601 | GNUNET_DISK_internal_file_handle_ (fd, &real_fd, sizeof (int)); | 1601 | GNUNET_DISK_internal_file_handle_ (fd, &real_fd, sizeof (int)); |
1602 | GNUNET_assert (real_fd > 0); | 1602 | GNUNET_assert (real_fd >= 0); |
1603 | return add_without_sets ( | 1603 | return add_without_sets ( |
1604 | delay, priority, | 1604 | delay, priority, |
1605 | on_read ? real_fd : -1, | 1605 | on_read ? real_fd : -1, |