Skip to content

Commit 0a15ecc

Browse files
committed
Merge branch 'yc/path-walk-fix-error-reporting' into jch
The value of a wrong pointer variable was referenced in an error message that reported that it shouldn't be NULL. * yc/path-walk-fix-error-reporting: path-walk: fix NULL pointer dereference in error message
2 parents d38b3c1 + 753ecf4 commit 0a15ecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

path-walk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static int add_tree_entries(struct path_walk_context *ctx,
173173

174174
if (!o) {
175175
error(_("failed to find object %s"),
176-
oid_to_hex(&o->oid));
176+
oid_to_hex(&entry.oid));
177177
return -1;
178178
}
179179

0 commit comments

Comments
 (0)