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
This commit is contained in:
Christopher James Lahey
2000-03-06 00:27:32 +00:00
committed by Chris Lahey
parent 41daf5fcbf
commit f21c9935ef
3 changed files with 10 additions and 6 deletions

View File

@ -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);
}