diff options
Diffstat (limited to 'src/utils/mkdir.cpp')
-rw-r--r-- | src/utils/mkdir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mkdir.cpp b/src/utils/mkdir.cpp index 582c9c7dc..5eb1b0388 100644 --- a/src/utils/mkdir.cpp +++ b/src/utils/mkdir.cpp @@ -67,7 +67,7 @@ int mkdir_r(const char *pathname) { *p = '\0'; // ignore a slash at the beginning of a path - if (strlen(tmp) == 0) + if (tmp[0] == 0) { *p = '/'; continue; |