aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-03-16 10:48:15 -0700
committerJunio C Hamano <gitster@pobox.com>2026-03-16 10:48:15 -0700
commit3c59f3bc4b7f2a972a2ec5690af4897d5a87a586 (patch)
tree54470eff60079d1ea63dcceca7f887faa1d91c6a
parent2eec0f51156ea872174bbd08f355155f381a568e (diff)
parentd1f33c753de68f63c945c3213f439081ed11c27b (diff)
downloadgit-3c59f3bc4b7f2a972a2ec5690af4897d5a87a586.tar.xz
Merge branch 'rs/history-ergonomics-updates-fix'
Fix use of uninitialized variable. * rs/history-ergonomics-updates-fix: history: initialize rev_info in cmd_history_reword()
-rw-r--r--builtin/history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/history.c b/builtin/history.c
index 1cf6c668cf..88822a184f 100644
--- a/builtin/history.c
+++ b/builtin/history.c
@@ -425,7 +425,7 @@ static int cmd_history_reword(int argc,
};
struct strbuf reflog_msg = STRBUF_INIT;
struct commit *original, *rewritten;
- struct rev_info revs;
+ struct rev_info revs = { 0 };
int ret;
argc = parse_options(argc, argv, prefix, options, usage, 0);