mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-28 05:54:50 -04:00
Fix issues spotted by PVS-Studio and SonarCloud
This commit is contained in:
parent
75a1374c0c
commit
22d1db8c7f
2 changed files with 4 additions and 2 deletions
|
@ -1539,7 +1539,7 @@ std::istream& operator >> (std::istream& sin, CBString& b) {
|
|||
do {
|
||||
b.gets ((bNgetc) istreamGets, &sin, '\n');
|
||||
if (b.slen > 0 && b.data[b.slen-1] == '\n') b.slen--;
|
||||
} while (b.slen == 0 && !sin.eof ());
|
||||
} while (b.slen == 0 && !sin.eof() && !sin.fail());
|
||||
return sin;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue