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
maint
Junio C Hamano 2026-04-07 14:59:26 -07:00
commit 59063fe8b4
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ static int add_tree_entries(struct path_walk_context *ctx,


if (!o) { if (!o) {
error(_("failed to find object %s"), error(_("failed to find object %s"),
oid_to_hex(&o->oid)); oid_to_hex(&entry.oid));
return -1; return -1;
} }