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

That condition is now handled within pkg_find() completely.
feature/tap-sh
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; pkg_t *pkg;
char readbuf[BUFSIZ]; char readbuf[BUFSIZ];
if (f == NULL)
return NULL;
pkg = calloc(sizeof(pkg_t), 1); pkg = calloc(sizeof(pkg_t), 1);
pkg->filename = strdup(filename); pkg->filename = strdup(filename);