diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c index c8bc8d402..9fab29e8b 100644 --- a/src/path.c +++ b/src/path.c @@ -1887,7 +1887,7 @@ extern int git_path_is_gitfile(const char *path, size_t pathlen, git_path_gitfil const char *file, *hash; size_t filelen; - if (gitfile < 0 && gitfile >= ARRAY_SIZE(gitfiles)) { + if (!(gitfile >= GIT_PATH_GITFILE_GITIGNORE && gitfile < ARRAY_SIZE(gitfiles))) { giterr_set(GITERR_OS, "invalid gitfile for path validation"); return -1; } |
