]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Fix clang warning
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 30 Jun 2017 14:29:14 +0000 (10:29 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 30 Jun 2017 14:29:14 +0000 (10:29 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/thread.c

index a1a9e7c359745de7e5a2e70cc17a8ef135d9a63a..1891735fc33cd6c19ea7949eef33a8c0c11c8f10 100644 (file)
@@ -1301,7 +1301,7 @@ thread_fetch (struct thread_master *m, struct thread *fetch)
   struct timeval now;
   struct timeval zerotime = { 0, 0 };
   struct timeval tv;
-  struct timeval *tw;
+  struct timeval *tw = NULL;
 
   int num = 0;