Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-blame: Make the output human readable
[gitweb.git]
/
diffcore-pathspec.c
diff --git
a/diffcore-pathspec.c
b/diffcore-pathspec.c
index 68fe009132d1e900138a9d61bb7c658e23d9b76d..139fe882f9f85575af297a2131cfac2888ae3c73 100644
(file)
--- a/
diffcore-pathspec.c
+++ b/
diffcore-pathspec.c
@@
-48,6
+48,9
@@
void diffcore_pathspec(const char **pathspec)
for (i = 0; pathspec[i]; i++)
;
speccnt = i;
+ if (!speccnt)
+ return;
+
spec = xmalloc(sizeof(*spec) * speccnt);
for (i = 0; pathspec[i]; i++) {
spec[i].spec = pathspec[i];