[Commits] [SCM] claws branch, master, updated. 3.17.0-45-gd97d7cb
ticho at claws-mail.org
ticho at claws-mail.org
Thu Sep 6 18:43:48 CEST 2018
The branch, master has been updated
via d97d7cbec17b5365a8c0adc5a9d88a44aedb1f31 (commit)
from 86fb1955ade3d9bd109caccd3d24a6ee830543b2 (commit)
Summary of changes:
src/common/xml.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit d97d7cbec17b5365a8c0adc5a9d88a44aedb1f31
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Thu Sep 6 18:43:35 2018 +0200
Avoid an unnecessary string copy in xml_attr_new_int().
diff --git a/src/common/xml.c b/src/common/xml.c
index 4127fd0..45fcd30 100644
--- a/src/common/xml.c
+++ b/src/common/xml.c
@@ -494,10 +494,8 @@ XMLAttr *xml_attr_new_int(const gchar *name, const gint value)
new_attr = g_new(XMLAttr, 1);
new_attr->name = XML_STRING_ADD(name);
- new_attr->value = g_strdup(valuestr);
+ new_attr->value = valuestr;
- g_free(valuestr);
-
return new_attr;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list