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.

Reproduction being discussed.
cf. <994f92e9-3576-455a-a142-0fefc559131c@gmail.com>

* yc/path-walk-fix-error-reporting:
  path-walk: fix NULL pointer dereference in error message
This commit is contained in:
Junio C Hamano
2026-03-25 13:03:30 -07:00

View File

@@ -174,7 +174,7 @@ static int add_tree_entries(struct path_walk_context *ctx,
if (!o) {
error(_("failed to find object %s"),
oid_to_hex(&o->oid));
oid_to_hex(&entry.oid));
return -1;
}