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

arma at torproject.org arma at torproject.org
Thu Apr 11 05:29:52 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