mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[string] warning
This commit is contained in:
parent
9a6a09450b
commit
ed07082ec9
@ -569,7 +569,7 @@ string_replace(struct string *res, struct string *inp, struct string *what, stru
|
|||||||
}
|
}
|
||||||
|
|
||||||
// count occurence of string in input
|
// 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;
|
ins = tmp_cnt + what->length;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user