AP_Scripting: add default case to fix uninitialised use situation

This commit is contained in:
Siddharth Purohit 2020-07-29 16:50:22 +05:30 committed by Peter Barker
parent 8d5c51748f
commit 913c00dd96
1 changed files with 1 additions and 0 deletions

View File

@ -174,6 +174,7 @@ void trace(const int trace, const char *message, ...) {
}
}
void error(const int code, const char *message, ...) __attribute__ ((noreturn));
void error(const int code, const char *message, ...) {
char * fmt = malloc(strlen(message)+1024);
if (fmt == NULL) {