From 0c7f85c8241f9f9f42be480ea4df08468e948364 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Sun, 18 Apr 2004 05:13:47 +0000 Subject: [PATCH] * Valgrind rulez :-) --- emufs_gui/facturas.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.43.0