diff options
author | Baruch Sterin <baruchs@gmail.com> | 2011-01-13 22:42:54 +0200 |
---|---|---|
committer | Baruch Sterin <baruchs@gmail.com> | 2011-01-13 22:42:54 +0200 |
commit | ab80b015a4efdf196334aafc19d589d48778f0bb (patch) | |
tree | 0a4af678193d4d84de98d0ecb0e141c17fa8ae87 /src/misc | |
parent | 811f5631a812968ccdbe157549f2445747053d50 (diff) | |
parent | ae4b51351c93983a1285ce1028e3bbd90a6d5721 (diff) | |
download | abc-ab80b015a4efdf196334aafc19d589d48778f0bb.tar.gz abc-ab80b015a4efdf196334aafc19d589d48778f0bb.tar.bz2 abc-ab80b015a4efdf196334aafc19d589d48778f0bb.zip |
merge changes from main branch
Diffstat (limited to 'src/misc')
-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; |