aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-03 16:12:30 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-03 16:12:30 -0500
commit24544a10c0f9e9022d13a413bf3330745d851afa (patch)
treee898bd355b814d889d16fe79cf5625d12cca41f7 /src/config
parent5991f9a15646d53b838562fd1424b6a8fd9ef614 (diff)
downloadtor-24544a10c0f9e9022d13a413bf3330745d851afa.tar
tor-24544a10c0f9e9022d13a413bf3330745d851afa.tar.gz
Clean up test_hs.c: warning fix; tor_free() usage.
My OSX laptop rightly gave a warning because of sticking strlen() into an int, but once I took a closer look... it appears that the strlen() was part of a needlessly verbose implementation for tor_strdup(). While I was there, I fixed the usage of tor_free() in test_hs.c: It checks for NULL, and it zeros its argument. So instead of if (foo) { tor_free(foo); foo = NULL; } we should just say tor_free(foo);
Diffstat (limited to 'src/config')
0 files changed, 0 insertions, 0 deletions