X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/adc471953720d36ec1767e5006ffd6c9758672c3..7ccae609792550a7d81d2496742def35f003bf26:/emufs_gui/articulos.c 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; }