]> rtime.felk.cvut.cz Git - git.git/blobdiff - help.c
Avoid declaration after statement
[git.git] / help.c
diff --git a/help.c b/help.c
index 294337e71c0c8f1c3e150dd0b566c04db96c013d..fd51b8e8ef748a146676de6192e0fb9170ed8836 100644 (file)
--- a/help.c
+++ b/help.c
@@ -127,7 +127,7 @@ static int is_executable(const char *name)
                return 0;
 
 #ifdef __MINGW32__
-       /* cannot trust the executable bit, peek into the file instead */
+{      /* cannot trust the executable bit, peek into the file instead */
        char buf[3] = { 0 };
        int n;
        int fd = open(name, O_RDONLY);
@@ -140,6 +140,7 @@ static int is_executable(const char *name)
                                st.st_mode |= S_IXUSR;
                close(fd);
        }
+}
 #endif
        return st.st_mode & S_IXUSR;
 }