mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
Apply part from patch 9525: fix lwip_strnicmp in a modified way:
Move side effect out of boolean expression
This commit is contained in:
parent
5b9f79680c
commit
4cfef8acab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user