-fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 10:16:55 +0000 (10:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 10:16:55 +0000 (10:16 +0000)
src/dns/gnunet-helper-dns.c

index 22c6ef35926d5dcc021ecab843e327c8cce00caa..0f19b4a5637c847ce85624dcc07fe24cca28c9d0 100644 (file)
@@ -468,7 +468,7 @@ run (int fd_tun)
   unsigned char bufin[MAX_SIZE];
   ssize_t bufin_size = 0;
   size_t bufin_rpos = 0;
-  unsigned char *bufin_read = NULL;
+  unsigned char *bufin_read;
   fd_set fds_w;
   fd_set fds_r;
   int max;
@@ -477,6 +477,7 @@ run (int fd_tun)
   {
     FD_ZERO (&fds_w);
     FD_ZERO (&fds_r);
+    bufin_read = NULL;
 
     /*
      * We are supposed to read and the buffer is empty