summaryrefslogtreecommitdiff
path: root/range-diff.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2025-12-11 18:56:54 +0100
committerJunio C Hamano <gitster@pobox.com>2025-12-12 12:41:26 +0900
commita4a77e41fa0ee3d526993be47086bbfe3a115cdc (patch)
tree5927f99cc76a2f94e7e20594b62832691ea88fcb /range-diff.c
parent8cb4a114382ea6eed7adade5c0701eae4c6c42d4 (diff)
replay: move onto NULL check before first use
cmd_replay() aborts if the pointer "onto" is NULL after argument parsing, e.g. when specifying a non-existing commit with --onto. 15cd4ef1f4 (replay: make atomic ref updates the default behavior, 2025-11-06) added code that dereferences this pointer before the check. Switch their places to avoid a segmentation fault. Reported-by: Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'range-diff.c')
0 files changed, 0 insertions, 0 deletions