mirror of
https://github.com/git/git.git
synced 2026-03-26 10:53:27 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user