From 8defa56cf637e36a73ed03425fa8ca75eb25a5ab Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 14 Jul 2012 00:10:21 +0200 Subject: [PATCH] remove second call to tmpfile() --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index eb3c4762b..fe6650090 100644 --- a/src/main.c +++ b/src/main.c @@ -1172,12 +1172,11 @@ main(int argc, char **argv) #if defined(HAS_WINDOWS) || defined(_MSC_VER) || defined(__MINGW32__) char *dname = NULL; /* input file*/ char *tpf = NULL; /* temporary file */ - tempfile = tmpfile(); /* tmpfile() returns NULL, if in MS Windows as non admin user in directory C:\something (no write permission to root C:). Then we add a tempfile in the local directory. - File will be removed again at exit() using atexit() */ + File will be removed automatically due to TD option in fopen */ if (tempfile == NULL) { tpf = smktemp("sp");