summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/mkdir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mkdir.cpp b/src/utils/mkdir.cpp
index 61abaca0f..fc6909710 100644
--- a/src/utils/mkdir.cpp
+++ b/src/utils/mkdir.cpp
@@ -120,7 +120,7 @@ int mkdir_r(const char *const pathname)
const size_t len = static_cast<size_t>(strlen(pathname));
char *tmp = new char[len + 2];
- char *p;
+ char *p = nullptr;
strcpy(tmp, pathname);