=================================================================== RCS file: /cvs/mandoc/Attic/apropos_db.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -p -r1.21 -r1.22 --- mandoc/Attic/apropos_db.c 2011/12/03 18:47:09 1.21 +++ mandoc/Attic/apropos_db.c 2011/12/09 11:18:57 1.22 @@ -1,4 +1,4 @@ -/* $Id: apropos_db.c,v 1.21 2011/12/03 18:47:09 kristaps Exp $ */ +/* $Id: apropos_db.c,v 1.22 2011/12/09 11:18:57 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -541,8 +541,10 @@ single_search(struct rectree *tree, const struct 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));