From ee62bedd596345bf06ad9071914126b8f6e09091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 2 May 2012 16:01:17 +0200 Subject: [PATCH] parse_file() no longer needs to handle f == NULL. That condition is now handled within pkg_find() completely. --- parse.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/parse.c b/parse.c index abef361..094ea73 100644 --- a/parse.c +++ b/parse.c @@ -373,9 +373,6 @@ parse_file(const char *filename, FILE *f) pkg_t *pkg; char readbuf[BUFSIZ]; - if (f == NULL) - return NULL; - pkg = calloc(sizeof(pkg_t), 1); pkg->filename = strdup(filename);