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:

committed by
Chris Lahey

parent
41daf5fcbf
commit
f21c9935ef
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user