From 950145577a19d91fcd9468ca7299d1716b9af679 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Mon, 31 May 2004 06:47:00 +0000 Subject: [PATCH] * Cambio la validacion por una mas segura --- emufs_gui/articulos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.43.0