Skip to content

Commit 59063fe

Browse files
committed
Merge branch 'yc/path-walk-fix-error-reporting'
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 55d867c + 753ecf4 commit 59063fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

path-walk.c

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

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

0 commit comments

Comments
 (0)