projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
86fb195
)
Avoid an unnecessary string copy in xml_attr_new_int().
author
Andrej Kacian
<ticho@claws-mail.org>
Thu, 6 Sep 2018 16:43:35 +0000
(18:43 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Thu, 6 Sep 2018 16:43:35 +0000
(18:43 +0200)
src/common/xml.c
patch
|
blob
|
history
diff --git
a/src/common/xml.c
b/src/common/xml.c
index 4127fd077916fcb671ac470243213882dde0eeaf..45fcd3001db65ab786f6b5b20dd2efaca7aaedc7 100644
(file)
--- 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;
}