Apply part from patch 9525: fix lwip_strnicmp in a modified way:

Move side effect out of boolean expression
This commit is contained in:
Dirk Ziegelmeier 2017-12-24 12:49:28 +01:00
parent 5b9f79680c
commit 4cfef8acab

View File

@ -183,7 +183,8 @@ lwip_strnicmp(const char *str1, const char *str2, size_t len)
return 1;
}
}
} while (len-- && c1 != 0);
len--;
} while ((len != 0) && (c1 != 0));
return 0;
}
#endif