[tor-commits] [tor/master] Fix unreachable use-before-assign in test_util_join_win_cmdline

nickm at torproject.org nickm at torproject.org
Fri Feb 15 21:02:36 UTC 2013


commit 6c8b6e9e78429297e8d73a502d10dacf47efeea3
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Feb 15 15:57:15 2013 -0500

    Fix unreachable use-before-assign in test_util_join_win_cmdline
    
    Apparently there is a compiler that believes this is something to
    warn about.
---
 src/test/test_util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index b17e414..c2cb444 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -2713,7 +2713,7 @@ test_util_join_win_cmdline(void *ptr)
   };
 
   int i;
-  char *joined_argv;
+  char *joined_argv = NULL;
 
   (void)ptr;
 



More information about the tor-commits mailing list