aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c2
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;
}