summaryrefslogtreecommitdiff
path: root/src/util/File.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-26 23:50:59 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-26 23:50:59 +0000
commitb738988168f0f33eb3bfabd27b0f854a14043d16 (patch)
tree16c8c52b3258b668287fb0dbc3a780f9ba6db2be /src/util/File.c
parentc5bca7cdda36fef2ceea06c5f5cb26b403b8fc70 (diff)
Various things pointed out by running Insure on the code.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1109 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/File.c')
-rw-r--r--src/util/File.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/util/File.c b/src/util/File.c
index 67fdfd55..b3adf8a6 100644
--- a/src/util/File.c
+++ b/src/util/File.c
@@ -9,8 +9,8 @@
@enddesc
@@*/
-#include <malloc.h>
#include <stdio.h>
+#include <stdlib.h>
#include "cctk_WarnLevel.h"
#include "cctk_FortranString.h"
@@ -75,10 +75,13 @@ int CCTK_mkdir(char *dir)
retval = system(command);
retval = 0;
- free(command);
-
- } else
+ }
+ else
+ {
retval = -1;
+ }
+
+ free(command);
return retval;