X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=ls-files.c;h=0d79104e0dd16c77c10a7db43c1afce3fc733160;hb=8c1f5f0f1f9c36ef5465512753efeff36758ba7d;hp=2c7aada88cc582dfee7ba19d1e6ae717e23d8e03;hpb=56fc5108a2e82a5780179f05a46d3b8be507dc8c;p=git.git diff --git a/ls-files.c b/ls-files.c index 2c7aada8..0d79104e 100644 --- a/ls-files.c +++ b/ls-files.c @@ -205,7 +205,7 @@ static int excluded(const char *pathname) struct nond_on_fs { int len; - char name[0]; + char name[]; }; static struct nond_on_fs **dir; @@ -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;