diff options
Diffstat (limited to 'src/lib9/tempdir_unix.c')
-rw-r--r-- | src/lib9/tempdir_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/tempdir_unix.c b/src/lib9/tempdir_unix.c index 7b7e58b4d..99a7092b6 100644 --- a/src/lib9/tempdir_unix.c +++ b/src/lib9/tempdir_unix.c @@ -16,7 +16,7 @@ mktempdir(void) char *tmp, *p; tmp = getenv("TMPDIR"); - if(tmp == nil) + if(tmp == nil || strlen(tmp) == 0) tmp = "/var/tmp"; p = smprint("%s/go-link-XXXXXX", tmp); if(mkdtemp(p) == nil) |