mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: add default case to fix uninitialised use situation
This commit is contained in:
parent
8d5c51748f
commit
913c00dd96
|
@ -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, ...) {
|
void error(const int code, const char *message, ...) {
|
||||||
char * fmt = malloc(strlen(message)+1024);
|
char * fmt = malloc(strlen(message)+1024);
|
||||||
if (fmt == NULL) {
|
if (fmt == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue