diff options
author | Junio C Hamano <junkio@cox.net> | 2005-12-26 18:44:15 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-26 18:44:15 -0800 |
commit | e5f5219a4f1faf3b4e1816fad3a6296a1d39b878 (patch) | |
tree | e41c6fb839732b2fe45bd9416a22411ed3035a07 /tree-diff.c | |
parent | 6ab58895cd951f6f5c96fa432afb122cfeb12746 (diff) | |
parent | 975b31dc6e12fba8f7b067ddbe32230995e05400 (diff) | |
download | git-1.0.5.tar.gz git-1.0.5.tar.xz |
GIT 1.0.5v1.0.5
Minor fixes.
Starting from this one I won't be touching debian/ directory
since the official maintainer seems to be reasonably quick to
package up things. The packaging procedure used there seems to
be quite different from what I have, so I'd like to avoid
potential confusion and reduce work by the official maintainer
and myself.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tree-diff.c')
-rw-r--r-- | tree-diff.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tree-diff.c b/tree-diff.c index 0ef06a9e3..382092bce 100644 --- 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]); |