diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -548,6 +548,9 @@ int mkdir_p(const char *path, mode_t m) { tmp[PATH_MAX-1] = 0; normalize_path(tmp); + + if (!tmp[0]) + return 0; for (b = tmp, quit = 0; !quit;) { |