summaryrefslogtreecommitdiff
path: root/src/util/File.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/File.c')
-rw-r--r--src/util/File.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/File.c b/src/util/File.c
index d0bfc542..326f4a0b 100644
--- a/src/util/File.c
+++ b/src/util/File.c
@@ -136,6 +136,7 @@ int CCTK_CreateDirectory (int mode, const char *pathname)
{
if (stat (pathname, &statbuf))
{
+ retval = 0;
if (MKDIR_WRAPPER (pathname, mode) == -1)
{
retval = errno == EEXIST ? 1 : -2;