From ed07082ec9ecb149d7e63adb123437e5004fd6d3 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 4 Jul 2021 12:52:25 +0200 Subject: [PATCH] [string] warning --- src/util/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/string.c b/src/util/string.c index 891d219cf..67881b176 100644 --- a/src/util/string.c +++ b/src/util/string.c @@ -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; }