aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-04-07 14:59:26 -0700
committerJunio C Hamano <gitster@pobox.com>2026-04-07 14:59:26 -0700
commit59063fe8b415f150eecd38c63b0171a0e8449364 (patch)
treea7f32db8b70f45f457be2509c1a6d32e0809e232
parent55d867c547895b17af0093b339673c16e09a2042 (diff)
parent753ecf42053b8afa9afcc19726635cc5a080c1bb (diff)
downloadgit-59063fe8b415f150eecd38c63b0171a0e8449364.tar.xz
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
-rw-r--r--path-walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path-walk.c b/path-walk.c
index 2aa3e7d8a4..6e426af433 100644
--- a/path-walk.c
+++ b/path-walk.c
@@ -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;
}