aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2015-12-22 22:20:54 +1100
committerDean Camera <dean@fourwalledcubicle.com>2015-12-22 22:20:54 +1100
commit593dd3dd550806fd68470513d4ee224d717c90e2 (patch)
tree3f2ef763a57eaa6daff877a5ef7e5dbecc372260 /Bootloaders
parente952f681dbda9e8568206281bf588f3455924a20 (diff)
downloadlufa-593dd3dd550806fd68470513d4ee224d717c90e2.tar.gz
lufa-593dd3dd550806fd68470513d4ee224d717c90e2.tar.bz2
lufa-593dd3dd550806fd68470513d4ee224d717c90e2.zip
Fix HID bootloader CLI app missing va_end() calls.
Diffstat (limited to 'Bootloaders')
-rw-r--r--Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
index cdee1c30c..4c3277649 100644
--- a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
+++ b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
@@ -929,6 +929,8 @@ int printf_verbose(const char *format, ...)
fflush(stdout);
return r;
}
+ va_end(ap);
+
return 0;
}
@@ -948,6 +950,8 @@ void die(const char *str, ...)
va_start(ap, str);
vfprintf(stderr, str, ap);
fprintf(stderr, "\n");
+ va_end(ap);
+
exit(1);
}