projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Documentation for git-daemon.
[git.git]
/
ls-files.c
diff --git
a/ls-files.c
b/ls-files.c
index
56f3919
..
e53d245
100644
(file)
--- 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[];
+ char name[
0
];
};
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;