From: Ricardo Markiewicz Date: Mon, 31 May 2004 06:47:00 +0000 (+0000) Subject: * Cambio la validacion por una mas segura X-Git-Tag: svn_import_r684~23 X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/commitdiff_plain/950145577a19d91fcd9468ca7299d1716b9af679 * Cambio la validacion por una mas segura --- diff --git a/emufs_gui/articulos.c b/emufs_gui/articulos.c index 36a1ca9..a555775 100644 --- a/emufs_gui/articulos.c +++ b/emufs_gui/articulos.c @@ -213,7 +213,7 @@ t_Articulo *art_obtener(t_LstArticulos *lst, int numero, EMUFS_REG_ID *id) error = 0; k = emufs_indice_generar_clave_desde_valor(lst->fp->indices, (char *)&numero); tmp = lst->fp->leer_registro(lst->fp, k, &size, &error); - if (error) { + if (tmp == NULL) { free(art); return NULL; }