Various fixes detected using PVS-Studio static analyzer.
- Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
This commit is contained in:
committed by
REBELLIOUSX\Rebel_X
parent
0f8c6dd382
commit
f50488a361
@@ -340,7 +340,7 @@ Error HTTPClient::poll(){
|
||||
int rs = response_str.size();
|
||||
if (
|
||||
(rs>=2 && response_str[rs-2]=='\n' && response_str[rs-1]=='\n') ||
|
||||
(rs>=4 && response_str[rs-4]=='\r' && response_str[rs-3]=='\n' && rs>=4 && response_str[rs-2]=='\r' && response_str[rs-1]=='\n')
|
||||
(rs>=4 && response_str[rs-4]=='\r' && response_str[rs-3]=='\n' && response_str[rs-2]=='\r' && response_str[rs-1]=='\n')
|
||||
) {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user