From 12b6e8cb65aa65f22f243a5b7d347175bbf3fd20 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 19 Aug 2009 10:31:29 +0200 Subject: [PATCH] compat/mingw.c: Fix declaration after instruction Signed-off-by: Johannes Schindelin --- compat/mingw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compat/mingw.c b/compat/mingw.c index 556ed57fea..9e0f5e0ffb 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -185,10 +185,11 @@ int mingw_open (const char *filename, int oflags, ...) FILE *mingw_fopen (const char *filename, const char *mode) { int hide = 0; + FILE *file; if (hide_dotfiles && basename((char*)filename)[0] == '.') hide = access(filename, F_OK); - FILE *file = fopen(filename, mode); + file = fopen(filename, mode); /* * In Windows a file or dir starting with a dot is not * automatically hidden. So lets mark it as hidden when