aboutsummaryrefslogtreecommitdiff
path: root/dump-cache-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'dump-cache-tree.c')
-rw-r--r--dump-cache-tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/dump-cache-tree.c b/dump-cache-tree.c
index fbea263dd..1ccaf5177 100644
--- a/dump-cache-tree.c
+++ b/dump-cache-tree.c
@@ -21,10 +21,9 @@ static int dump_cache_tree(struct cache_tree *it,
int i;
int errs = 0;
- if (!it)
- return;
- if (!ref)
- die("internal error");
+ if (!it || !ref)
+ /* missing in either */
+ return 0;
if (it->entry_count < 0) {
dump_one(it, pfx, "");