commit f0cab27e81a984c028f2cc1d7be1af0083352210
parent 9c2dc86a857c567847a24f5b3184578839ed34c3
Author: Ricardo Mones <ricardo@mones.org>
Date: Tue, 18 Apr 2023 23:56:56 +0200
Quit searching if string became empty
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/common/utils.c b/src/common/utils.c
@@ -609,6 +609,8 @@ gchar *escape_internal_quotes(gchar *str, gchar quote_chr)
return str;
g_strstrip(str);
+ if (*str == '\0')
+ return str;
/* search for unescaped quote_chr */
p = str;
if (*p == quote_chr)