diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-08-20 13:24:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-08-20 13:24:54 -0400 |
commit | 34551cda6f699cee5816a5935b56787ccb7b8f67 (patch) | |
tree | 0f5eaa0d0f01871fb860f963ab0ed194de1793c1 /src/test/test.c | |
parent | d8a8e8339781f7a1e98838c100d3f875c9bb9df7 (diff) | |
download | tor-34551cda6f699cee5816a5935b56787ccb7b8f67.tar.gz tor-34551cda6f699cee5816a5935b56787ccb7b8f67.zip |
Add unit test for tor_listdir.
Diffstat (limited to 'src/test/test.c')
-rw-r--r-- | src/test/test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c index 16ac1e4a67..d9528328b8 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -107,6 +107,8 @@ get_fname(const char *name) { static char buf[1024]; setup_directory(); + if (!name) + return temp_dir; tor_snprintf(buf,sizeof(buf),"%s/%s",temp_dir,name); return buf; } |