mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-09 15:01:59 -05:00
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
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