Skip to content

Commit 3c59f3b

Browse files
committed
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()
2 parents 2eec0f5 + d1f33c7 commit 3c59f3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/history.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ static int cmd_history_reword(int argc,
425425
};
426426
struct strbuf reflog_msg = STRBUF_INIT;
427427
struct commit *original, *rewritten;
428-
struct rev_info revs;
428+
struct rev_info revs = { 0 };
429429
int ret;
430430

431431
argc = parse_options(argc, argv, prefix, options, usage, 0);

0 commit comments

Comments
 (0)