diff options
Diffstat (limited to 'src/misc/util/utilFile.c')
-rw-r--r-- | src/misc/util/utilFile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/misc/util/utilFile.c b/src/misc/util/utilFile.c index 09af7b0a..2c40c32c 100644 --- a/src/misc/util/utilFile.c +++ b/src/misc/util/utilFile.c @@ -98,6 +98,7 @@ int tmpFile(const char* prefix, const char* suffix, char** out_name) free(*out_name); *out_name = NULL; }else{ + // Kludge: close(fd); unlink(*out_name); @@ -107,6 +108,11 @@ int tmpFile(const char* prefix, const char* suffix, char** out_name) free(*out_name); *out_name = NULL; } + +// assert( 0 ); + // commented out because had problem with g++ saying that + // close() and unlink() are not defined in the namespace + } return fd; |