1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[string] warning

This commit is contained in:
Witold Filipczyk 2021-07-04 12:52:25 +02:00
parent 9a6a09450b
commit ed07082ec9

View File

@ -569,7 +569,7 @@ string_replace(struct string *res, struct string *inp, struct string *what, stru
}
// count occurence of string in input
for (count = 0; tmp_cnt = strstr(ins, what->source); ++count)
for (count = 0; (tmp_cnt = strstr(ins, what->source)); ++count)
{
ins = tmp_cnt + what->length;
}