Fix HID bootloader CLI app missing va_end() calls.

pull/1469/head
Dean Camera 9 years ago
parent e952f681db
commit 593dd3dd55

@ -929,6 +929,8 @@ int printf_verbose(const char *format, ...)
fflush(stdout); fflush(stdout);
return r; return r;
} }
va_end(ap);
return 0; return 0;
} }
@ -948,6 +950,8 @@ void die(const char *str, ...)
va_start(ap, str); va_start(ap, str);
vfprintf(stderr, str, ap); vfprintf(stderr, str, ap);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
va_end(ap);
exit(1); exit(1);
} }

Loading…
Cancel
Save