AP_Scripting: build fix for macOS

This commit is contained in:
Andy Piper 2020-05-13 15:24:48 +01:00 committed by WickedShell
parent 36869f668b
commit e9b939ccb5
1 changed files with 1 additions and 1 deletions

View File

@ -673,7 +673,7 @@ void handle_operator(struct userdata *data) {
error(ERROR_USERDATA, "Needed a symbol for the operator");
}
enum operator_type operation;
enum operator_type operation = OP_ADD;
if (strcmp(operator, "+") == 0) {
operation = OP_ADD;
} else if (strcmp(operator, "-") == 0) {