forked from ariadne/pkgconf
parse_file() no longer needs to handle f == NULL.
That condition is now handled within pkg_find() completely.feature/tap-sh
parent
0e0bf1b0fb
commit
ee62bedd59
3
parse.c
3
parse.c
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue