diff options
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index 4e7c730..47339fd 100644 --- a/src/search.c +++ b/src/search.c @@ -145,6 +145,8 @@ static void print_result(struct apk_database *db, const char *match, struct apk_ struct apk_provider *p; struct apk_package *pkg = NULL; + if (!name) return; + if (ctx->show_all) { foreach_array_item(p, name->providers) print_result_pkg(ctx, p->pkg); |