aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-03-06 08:27:32 +0800
committerChris Lahey <clahey@src.gnome.org>2000-03-06 08:27:32 +0800
commitf21c9935ef2b5e4cec61696b9e0d445a729766cc (patch)
treecee6bf9ac7b5af4c2846c8f8766ef9ae10d137d7
parent41daf5fcbfcd5abe2000fa2a6fab8e9ba97c1a21 (diff)
downloadgsoc2013-evolution-f21c9935ef2b5e4cec61696b9e0d445a729766cc.tar
gsoc2013-evolution-f21c9935ef2b5e4cec61696b9e0d445a729766cc.tar.gz
gsoc2013-evolution-f21c9935ef2b5e4cec61696b9e0d445a729766cc.tar.bz2
gsoc2013-evolution-f21c9935ef2b5e4cec61696b9e0d445a729766cc.tar.lz
gsoc2013-evolution-f21c9935ef2b5e4cec61696b9e0d445a729766cc.tar.xz
gsoc2013-evolution-f21c9935ef2b5e4cec61696b9e0d445a729766cc.tar.zst
gsoc2013-evolution-f21c9935ef2b5e4cec61696b9e0d445a729766cc.zip
Fixed e_xml_set_integer_prop_by_name.
2000-03-05 Christopher James Lahey <clahey@helixcode.com> * e-util/e-xml-utils.c: Fixed e_xml_set_integer_prop_by_name. svn path=/trunk/; revision=2066
-rw-r--r--ChangeLog4
-rw-r--r--e-util/e-xml-utils.c6
-rw-r--r--e-util/e-xml-utils.c-568266
3 files changed, 10 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 275e1e38df..bf77451907 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-03-05 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-util/e-xml-utils.c: Fixed e_xml_set_integer_prop_by_name.
+
2000-03-05 Matt Loper <matt.loper@splashtech.com>
* tests/ui-tests/message-browser.c: Commenting added.
diff --git a/e-util/e-xml-utils.c b/e-util/e-xml-utils.c
index 7eb54105d1..db9cfafb92 100644
--- a/e-util/e-xml-utils.c
+++ b/e-util/e-xml-utils.c
@@ -48,7 +48,7 @@ e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name)
void
e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value)
{
- xmlChar *value = g_strdup_printf("%d", value);
- xmlSetProp(parent, prop_name, value);
- g_free (value);
+ xmlChar *valuestr = g_strdup_printf("%d", value);
+ xmlSetProp(parent, prop_name, valuestr);
+ g_free (valuestr);
}
diff --git a/e-util/e-xml-utils.c-56826 b/e-util/e-xml-utils.c-56826
index 7eb54105d1..db9cfafb92 100644
--- a/e-util/e-xml-utils.c-56826
+++ b/e-util/e-xml-utils.c-56826
@@ -48,7 +48,7 @@ e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name)
void
e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value)
{
- xmlChar *value = g_strdup_printf("%d", value);
- xmlSetProp(parent, prop_name, value);
- g_free (value);
+ xmlChar *valuestr = g_strdup_printf("%d", value);
+ xmlSetProp(parent, prop_name, valuestr);
+ g_free (valuestr);
}