diff --git a/qpkg/qpkg.c b/qpkg/qpkg.c index ee9faca..0c331dc 100644 --- a/qpkg/qpkg.c +++ b/qpkg/qpkg.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "jrb.h" #include "id.h" @@ -103,10 +104,9 @@ static void find_prereq(const char *name, const char *version) const char *file = (*pkgs)->filename; const char *end; - if (file) { - end = strchr(file, '\n'); - printf("%.*s\n", (int) (end-file), file); - } + assert(file); + end = strchr(file, '\n'); + printf("%.*s\n", (int) (end-file), file); pkgs++; } }