[Commits] [SCM] claws branch, master, updated. 3.16.0-261-gd81313e

ticho at claws-mail.org ticho at claws-mail.org
Mon Aug 13 20:45:11 CEST 2018


The branch, master has been updated
       via  d81313eb3abfed3ecfdf3b77d6d13103a0c45f12 (commit)
      from  bdf64632931718f7422ea1e78e20ddd4d492e149 (commit)

Summary of changes:
 src/plugins/rssyl/strutils.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit d81313eb3abfed3ecfdf3b77d6d13103a0c45f12
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Aug 13 20:44:21 2018 +0200

    Avoid a needless string copy in rssyl_replace_html_stuff().

diff --git a/src/plugins/rssyl/strutils.c b/src/plugins/rssyl/strutils.c
index 441f4fd..e917b9a 100644
--- 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;
 			}
 		}
 	}

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list