PVS/V590: redundant condition #10510

This commit is contained in:
Ihor Antonov
2019-07-15 04:52:38 -04:00
committed by Justin M. Keyes
parent 5a32db9ad4
commit 63ecfc97ef

View File

@@ -1217,7 +1217,7 @@ int do_search(
xfree(msgbuf);
msgbuf = r;
// move reversed text to beginning of buffer
while (*r != NUL && *r == ' ') {
while (*r == ' ') {
r++;
}
size_t pat_len = msgbuf + STRLEN(msgbuf) - r;