aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2015-12-22 22:28:09 +1100
committerDean Camera <dean@fourwalledcubicle.com>2015-12-22 22:28:09 +1100
commitdd09a833d9e7be1713efda71a4eeb825aab1696a (patch)
tree845560d31777015b7fe2ad9c821f55024ced81a9
parent593dd3dd550806fd68470513d4ee224d717c90e2 (diff)
downloadlufa-dd09a833d9e7be1713efda71a4eeb825aab1696a.tar.gz
lufa-dd09a833d9e7be1713efda71a4eeb825aab1696a.tar.bz2
lufa-dd09a833d9e7be1713efda71a4eeb825aab1696a.zip
Fix additional missing va_end() in the HID bootloader CLI utility.
-rw-r--r--Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c5
1 files changed, 2 insertions, 3 deletions
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)