Re: [PATCH 11/11] bug_fl(): add missing `va_end()` call
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 16, 2022, 20:11 UTC
- Message-ID
- <xmqqr13os71k.fsf@gitster.g>
- In-Reply-To
- <YquCaE+Vw9P/fybU@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> Being the curious sort, I ran it in a debugger. And indeed, "cp" is > filled with uninitialized garbage. The reason it works is that the test > calls bug() with a format string that does not contain any placeholders. > And thus our eventual call to vsnprintf() does not ever look at "cp" at > all!
;-) Thanks.