diff --git a/lib/token.cpp b/lib/token.cpp index f974114ea..bc191c6a7 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -297,10 +297,12 @@ int Token::firstWordEquals(const char *str, const char *word) { for (;;) { - if (*str == ' ' && *word == 0) - return 0; - else if (*str != *word) + if (*str != *word) + { + if (*str == ' ' && *word == 0) + return 0; return 1; + } else if (*str == 0) break;