diff --git a/CheckOther.cpp b/CheckOther.cpp index 58c530491..b5d47465c 100644 --- a/CheckOther.cpp +++ b/CheckOther.cpp @@ -283,9 +283,14 @@ void CheckOther::WarningIf() // Check that there is a condition.. const char *p[6] = {"==","<=",">=","!=","<",">"}; bool iscond = false; - for (int i = 0; i < 6; i++) - if (iscond = (strcmp(cond, p[i]) == 0)) - break; + for (int i = 0; i < 6; i++) + { + if (strcmp(cond, p[i]) == 0) + { + iscond = true; + break; + } + } if (!iscond) break;