gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r19385 - gnunet/src/dns


From: gnunet
Subject: [GNUnet-SVN] r19385 - gnunet/src/dns
Date: Wed, 25 Jan 2012 12:38:15 +0100

Author: grothoff
Date: 2012-01-25 12:38:15 +0100 (Wed, 25 Jan 2012)
New Revision: 19385

Modified:
   gnunet/src/dns/gnunet-helper-dns.c
Log:
-fixfix

Modified: gnunet/src/dns/gnunet-helper-dns.c
===================================================================
--- gnunet/src/dns/gnunet-helper-dns.c  2012-01-25 10:35:47 UTC (rev 19384)
+++ gnunet/src/dns/gnunet-helper-dns.c  2012-01-25 11:38:15 UTC (rev 19385)
@@ -468,7 +468,7 @@
   unsigned char bufin[MAX_SIZE];
   ssize_t bufin_size = 0;
   size_t bufin_rpos = 0;
-  unsigned char *bufin_read;
+  unsigned char *bufin_read = NULL;
   fd_set fds_w;
   fd_set fds_r;
   int max;
@@ -477,7 +477,6 @@
   {
     FD_ZERO (&fds_w);
     FD_ZERO (&fds_r);
-    bufin_read = NULL;
 
     /*
      * We are supposed to read and the buffer is empty
@@ -578,6 +577,7 @@
         bufin_size = read (0, bufin + bufin_rpos, MAX_SIZE - bufin_rpos);
         if (-1 == bufin_size)
         {
+         bufin_read = NULL;
          if ( (errno == EINTR) ||
               (errno == EAGAIN) )
            continue;
@@ -586,6 +586,7 @@
         }
        if (0 == bufin_size)
         {
+         bufin_read = NULL;
           fprintf (stderr, "EOF on stdin\n");
          return;
         }




reply via email to

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