From: Ricardo Markiewicz Date: Sun, 18 Apr 2004 05:13:47 +0000 (+0000) Subject: * Valgrind rulez :-) X-Git-Tag: svn_import_r684~380 X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/commitdiff_plain/0c7f85c8241f9f9f42be480ea4df08468e948364?ds=inline * Valgrind rulez :-) --- diff --git a/emufs_gui/facturas.c b/emufs_gui/facturas.c index 286ddc3..7a594d3 100644 --- a/emufs_gui/facturas.c +++ b/emufs_gui/facturas.c @@ -22,12 +22,13 @@ t_LstFacturas *fact_get_lst() char *xml_get_prop(xmlNode *node, char *nombre) { char *s; - if (xmlGetProp(node, nombre) == NULL) { + s = xmlGetProp(node, nombre); + if (s == NULL) { s = malloc(1); s[0] = '\0'; return s; } - return xmlGetProp(node, nombre); + return s; } int eliminar_nodo_factura(t_LstFacturas *lst, t_Reg_Factura *nodo)