diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-03 16:12:30 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-03 16:12:30 -0500 |
commit | 24544a10c0f9e9022d13a413bf3330745d851afa (patch) | |
tree | e898bd355b814d889d16fe79cf5625d12cca41f7 /src/config | |
parent | 5991f9a15646d53b838562fd1424b6a8fd9ef614 (diff) | |
download | tor-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