summaryrefslogtreecommitdiff
path: root/src/utils/mkdir.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 16:53:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit44b1a218214e56f07a5a55901b33761f0845979e (patch)
treea306095f7540df4da4ad521abadd2420b69c7fc4 /src/utils/mkdir.cpp
parent0956bdd8a29fdff9b7d0379325f12b7d8c650b41 (diff)
downloadmanaverse-44b1a218214e56f07a5a55901b33761f0845979e.tar.gz
manaverse-44b1a218214e56f07a5a55901b33761f0845979e.tar.bz2
manaverse-44b1a218214e56f07a5a55901b33761f0845979e.tar.xz
manaverse-44b1a218214e56f07a5a55901b33761f0845979e.zip
add missing initialisation in mkdir.
Diffstat (limited to 'src/utils/mkdir.cpp')
-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);