From 3d8d41108f2b57551ef19b5da0d26e02b4bd588e Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 2 Jul 2011 15:29:35 +0000 Subject: [PATCH] main.c, cleanup --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 67c5cf2ab..2e3bf51a1 100644 --- a/src/main.c +++ b/src/main.c @@ -1147,12 +1147,11 @@ bot: the temporary file but used the original file instead. The current algorithm is uniform at the expense of a little startup time. */ - FILE *tempfile; + FILE *tempfile = tmpfile(); #if defined(HAS_WINDOWS) || defined(_MSC_VER) || defined(__MINGW32__) char *tpf = NULL; /* temporary file */ char *dname = NULL; /* input file*/ #endif - tempfile = tmpfile(); /* tmpfile() returns NULL, if in MS Windows as non admin user then we add a tempfile in the local directory */ #if defined(HAS_WINDOWS) || defined(_MSC_VER) || defined(__MINGW32__)