talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ff726cd1aff7e80ff7071bfed51de0cdc3ff3620
parent 2f9243b9b63d0fc9c14e4af89fffb5b03d132f86
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:
Msrc/plugins/rssyl/strutils.c | 3+--
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; } } }