diff options
-rw-r--r-- | src/nxt_fs.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nxt_fs.c b/src/nxt_fs.c index 59e9a766..0af84742 100644 --- a/src/nxt_fs.c +++ b/src/nxt_fs.c @@ -23,11 +23,7 @@ nxt_fs_mkdir_p(const u_char *dir, mode_t mode) start = (char *) dir; while (*start != '\0') { - if (*start == '/') { - *dst++ = *start++; - } - - end = strchr(start, '/'); + end = strchr(start + 1, '/'); if (end == NULL) { end = ((char *)dir + dirlen); } |