parse_file() no longer needs to handle f == NULL.

That condition is now handled within pkg_find() completely.
pull/1/head
Michał Górny 2012-05-02 16:01:17 +02:00
parent 0e0bf1b0fb
commit ee62bedd59
1 changed files with 0 additions and 3 deletions

View File

@ -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);