gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 25/45: fix off-by-one error that prevented reading


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 25/45: fix off-by-one error that prevented reading from stdin
Date: Sun, 31 Dec 2017 00:37:12 +0100

This is an automated email from the git hooks/post-receive script.

lurchi pushed a commit to branch master
in repository gnunet.

commit 70fedfb249696028103dd77f5641f8f7b46f5c61
Author: lurchi <address@hidden>
AuthorDate: Sat Aug 12 17:39:54 2017 +0200

    fix off-by-one error that prevented reading from stdin
---
 src/util/scheduler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index 1f5fe3f61..2ea2378eb 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -1929,7 +1929,7 @@ select_add (void *cls,
   GNUNET_assert (NULL != task);
   GNUNET_assert (NULL != fdi);
 
-  if (!((NULL != fdi->fd) ^ (NULL != fdi->fh)) || (0 >= fdi->sock))
+  if (!((NULL != fdi->fd) ^ (NULL != fdi->fh)) || (0 > fdi->sock))
   {
     /* exactly one out of {fd, hf} must be != NULL and the OS handle must be 
valid */
     return GNUNET_SYSERR;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]