projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
svnimport: support repositories requiring SSL authentication
[git.git]
/
tree-diff.c
diff --git
a/tree-diff.c
b/tree-diff.c
index
0ef06a9
..
382092b
100644
(file)
--- a/
tree-diff.c
+++ b/
tree-diff.c
@@
-263,6
+263,10
@@
void diff_tree_setup_paths(const char **p)
paths = p;
nr_paths = count_paths(paths);
+ if (nr_paths == 0) {
+ pathlens = NULL;
+ return;
+ }
pathlens = xmalloc(nr_paths * sizeof(int));
for (i=0; i<nr_paths; i++)
pathlens[i] = strlen(paths[i]);