From 761682b6254a3d43e65ff45e07683c61afa6f1e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Mar 2012 16:54:22 +0300 Subject: Last part of fixes. --- src/utils/mkdir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/mkdir.cpp') 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; -- cgit v1.2.3-70-g09d2