X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/5a387a8b34609840f1e86a5fc4af8ef47cee8fdd..0c7f85c8241f9f9f42be480ea4df08468e948364:/emufs_gui/facturas.c?ds=sidebyside 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)