diff options
-rw-r--r-- | apropos_db.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apropos_db.c b/apropos_db.c index 6859a914..36afaf47 100644 --- a/apropos_db.c +++ b/apropos_db.c @@ -541,8 +541,10 @@ single_search(struct rectree *tree, const struct opts *opts, if (opts->cat && strcasecmp(opts->cat, r.res.cat)) continue; - if (opts->arch && strcasecmp(opts->arch, r.res.arch)) - continue; + + if (opts->arch && *r.res.arch) + if (strcasecmp(opts->arch, r.res.arch)) + continue; tree->node = rs = mandoc_realloc (rs, (tree->len + 1) * sizeof(struct rec)); |