NULL-initialize array pointers
authorlurchi <lurchi@strangeplace.net>
Thu, 24 Aug 2017 18:38:15 +0000 (20:38 +0200)
committerlurchi <lurchi@strangeplace.net>
Thu, 24 Aug 2017 18:38:15 +0000 (20:38 +0200)
src/util/scheduler.c

index 5e8d0844c9dd833b8e9ff09b49d34e6c232dbea4..51833a78b8d39001f38a86a6136a848ea21f3a4f 100644 (file)
@@ -1733,6 +1733,10 @@ GNUNET_SCHEDULER_add_select (enum GNUNET_SCHEDULER_Priority prio,
   t->read_fd = -1;
   t->write_fd = -1;
   t->own_handlers = GNUNET_YES;
+  read_nhandles = NULL;
+  write_nhandles = NULL;
+  read_fhandles = NULL;
+  write_fhandles = NULL;
   read_nhandles_len = 0;
   write_nhandles_len = 0;
   read_fhandles_len = 0;