[tor-commits] [tor/master] Fix an uninitialized-var warning in unit tests

nickm at torproject.org nickm at torproject.org
Fri Mar 22 16:44:53 UTC 2013


commit 1b6b8b05642cfa5e951a8b25233191a1ab8dda2f
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Mar 22 12:38:55 2013 -0400

    Fix an uninitialized-var warning in unit tests
    
    Found by formorer; fix on 42fb61d172b172, not in any released Tor.
---
 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 2c4f804..6e1ee71 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -802,7 +802,7 @@ test_util_strmisc(void)
 {
   char buf[1024];
   int i;
-  char *cp, *cp_tmp;
+  char *cp, *cp_tmp = NULL;
 
   /* Test strl operations */
   test_eq(5, strlcpy(buf, "Hello", 0));





More information about the tor-commits mailing list