mirror of
https://github.com/git/git.git
synced 2026-04-01 12:30:09 +02:00
compat/mingw.c: Fix declaration after instruction
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user