commit - 8e158b0141b7625e7db96d7ff32f7312b08d2740
commit + 6ced7ba8b0a1cecd667313e4e45f51be404f97c8
blob - 05c0896c505ce7c7462de2f06c6387e3169eb110
blob + 1db1d7561b93f5dfbf11def07d7ef437d2da324c
--- lib/fileindex.c
+++ lib/fileindex.c
next = walk_fileindex(fileindex, *ie);
if (got_path_is_child((*ie)->path, path, path_len) &&
(entry_name == NULL ||
- strcmp(te->name, entry_name) == 0)) {
+ (te && strcmp(te->name, entry_name) == 0))) {
err = cb->diff_old(cb_arg, *ie, path);
if (err || entry_name)
break;