commit d81313eb3abfed3ecfdf3b77d6d13103a0c45f12
parent bdf64632931718f7422ea1e78e20ddd4d492e149
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Mon, 13 Aug 2018 20:44:21 +0200
Avoid a needless string copy in rssyl_replace_html_stuff().
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/plugins/rssyl/strutils.c b/src/plugins/rssyl/strutils.c
@@ -180,8 +180,7 @@ gchar *rssyl_replace_html_stuff(gchar *text,
if( g_strstr_len(text, strlen(text), tag_list[i].key) ) {
tmp = rssyl_strreplace(wtext, tag_list[i].key, tag_list[i].val);
g_free(wtext);
- wtext = g_strdup(tmp);
- g_free(tmp);
+ wtext = tmp;
}
}
}