summaryrefslogtreecommitdiff
path: root/builtin/range-diff.c
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2025-08-24 21:06:43 +0200
committerJunio C Hamano <gitster@pobox.com>2025-08-25 08:30:26 -0700
commit62e4ef85fbc5574fd80caababbf41bd33f53a46d (patch)
tree4da7bde137027fa45a92aa3f39ac17aa5565dea3 /builtin/range-diff.c
parent9df27c258edf89ea8ea0472a0a9c260e026f197f (diff)
line-log: initialize diff queue in process_ranges_ordinary_commit()
process_ranges_ordinary_commit() uses a local diff queue variable, which it leaves uninitialized before passing its address to queue_diffs(). This is not an issue, because at the end of that function the contents of an other diff queue is moved into it by simply overwriting whatever is in there, i.e. without reading any uninitialized memory. Still, seeing the uninitialized diff queue being passed around scared me more than once, so out of caution let's make sure that it's initialized. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/range-diff.c')
0 files changed, 0 insertions, 0 deletions