From ae4b51351c93983a1285ce1028e3bbd90a6d5721 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 13 Jan 2011 12:38:59 -0800 Subject: Cumulative changes in the last few weeks. --- src/misc/util/utilFile.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/misc/util/utilFile.c') 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; -- cgit v1.2.3