Browse Source

Fix an uninitialized-var warning in unit tests

Found by formorer; fix on 42fb61d172b172, not in any released Tor.
Nick Mathewson 11 years ago
parent
commit
1b6b8b0564
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/test/test_util.c

+ 1 - 1
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));