diff options
Diffstat (limited to 'ls-files.c')
-rw-r--r-- | ls-files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ls-files.c b/ls-files.c index 56f3919e06..0d79104e0d 100644 --- a/ls-files.c +++ b/ls-files.c @@ -496,7 +496,7 @@ static void verify_pathspec(void) char c = n[i]; if (prev && prev[i] != c) break; - if (c == '*' || c == '?') + if (!c || c == '*' || c == '?') break; if (c == '/') len = i+1; |