diff options
-rw-r--r-- | Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c | 4 |
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); } |