diff options
| author | René Scharfe <l.s.r@web.de> | 2026-03-08 10:57:02 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-09 12:34:52 -0700 |
| commit | d1f33c753de68f63c945c3213f439081ed11c27b (patch) | |
| tree | b1d20ab2a7a56a5a74169b841f38d1acd0d81011 /patch-ids.c | |
| parent | 1278a26544e81dddf564fd7730890a7e023ed367 (diff) | |
| download | git-d1f33c753de68f63c945c3213f439081ed11c27b.tar.xz | |
history: initialize rev_info in cmd_history_reword()
git history reword expects a single valid revision argument and errors
out if it doesn't get it. In that case the struct rev_info passed to
release_revisions() for cleanup is still uninitialized, which can result
in attempts to free(3) random pointers. Avoid that by initializing the
structure.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'patch-ids.c')
0 files changed, 0 insertions, 0 deletions
