t-strvec: use va_end() to match va_start()
commitb639884f9ac78325b9a6658f23c9c245b8ac8263
authorJeff King <peff@peff.net>
Thu, 30 May 2024 06:39:32 +0000 (30 02:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 May 2024 15:55:29 +0000 (30 08:55 -0700)
tree9de2c58b8372178c796fb5e67d2761a2cad5966b
parenta3f0e2a06496c8547b27921445ab47f482452a69
t-strvec: use va_end() to match va_start()

Our check_strvec_loc() helper uses a variable argument list. When we
va_start(), we must be sure to va_end() before leaving the function.
This is required by the standard (though the effect of forgetting will
vary between platforms).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/t-strvec.c