From 4d9df012f65506e15147023059f71ed87cd48d9b Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Tue, 21 Nov 2017 22:33:42 -0500 Subject: [PATCH] Fix check for whether there is a directory in the path. --- platform-independent/cli-c/cli/mpw-cli-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-independent/cli-c/cli/mpw-cli-util.c b/platform-independent/cli-c/cli/mpw-cli-util.c index 323e7b45..e604fc56 100644 --- a/platform-independent/cli-c/cli/mpw-cli-util.c +++ b/platform-independent/cli-c/cli/mpw-cli-util.c @@ -229,7 +229,7 @@ bool mpw_mkdirs(const char *filePath) { // The path to mkdir is the filePath without the last path component. char *pathEnd = strrchr( filePath, '/' ); - if (pathEnd) + if (!pathEnd) return true; // Walk the path.