From: Dean Camera Date: Tue, 22 Dec 2015 11:28:09 +0000 (+1100) Subject: Fix additional missing va_end() in the HID bootloader CLI utility. X-Git-Tag: LUFA-170418~32 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/dd09a833d9e7be1713efda71a4eeb825aab1696a?hp=-c Fix additional missing va_end() in the HID bootloader CLI utility. --- dd09a833d9e7be1713efda71a4eeb825aab1696a diff --git a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c index 4c3277649..b54f943b1 100644 --- a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c +++ b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c @@ -921,17 +921,16 @@ void ihex_get_data(int addr, int len, unsigned char *bytes) int printf_verbose(const char *format, ...) { va_list ap; - int r; + int r = 0; va_start(ap, format); if (verbose) { r = vprintf(format, ap); fflush(stdout); - return r; } va_end(ap); - return 0; + return r; } void delay(double seconds)