diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-22 12:38:55 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-22 12:38:55 -0400 |
commit | 1b6b8b05642cfa5e951a8b25233191a1ab8dda2f (patch) | |
tree | 747bb328159072927b7c174e8aad1793cf9ab611 | |
parent | 42fb61d172b172687cd57c86dd72b117f03f2136 (diff) | |
download | tor-1b6b8b05642cfa5e951a8b25233191a1ab8dda2f.tar.gz tor-1b6b8b05642cfa5e951a8b25233191a1ab8dda2f.zip |
Fix an uninitialized-var warning in unit tests
Found by formorer; fix on 42fb61d172b172, not in any released Tor.
-rw-r--r-- | 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 2c4f8040d4..6e1ee713d8 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)); |