Fix HID bootloader CLI app missing va_end() calls.
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 22 Dec 2015 11:20:54 +0000 (22:20 +1100)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 22 Dec 2015 11:20:54 +0000 (22:20 +1100)
Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c

index cdee1c3..4c32776 100644 (file)
@@ -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);
 }