]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix unreachable use-before-assign in test_util_join_win_cmdline
authorNick Mathewson <nickm@torproject.org>
Fri, 15 Feb 2013 20:57:15 +0000 (15:57 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 15 Feb 2013 20:57:47 +0000 (15:57 -0500)
Apparently there is a compiler that believes this is something to
warn about.

src/test/test_util.c

index b17e4142557474b1293f8b8e684602724d19f22e..c2cb4448e6e786d0444f40de1e002b460eb8866b 100644 (file)
@@ -2713,7 +2713,7 @@ test_util_join_win_cmdline(void *ptr)
   };
 
   int i;
-  char *joined_argv;
+  char *joined_argv = NULL;
 
   (void)ptr;