=================================================================== RCS file: /cvs/mandoc/Attic/apropos_db.c,v retrieving revision 1.20 retrieving revision 1.22 diff -u -p -r1.20 -r1.22 --- mandoc/Attic/apropos_db.c 2011/12/03 12:09:07 1.20 +++ mandoc/Attic/apropos_db.c 2011/12/09 11:18:57 1.22 @@ -1,4 +1,4 @@ -/* $Id: apropos_db.c,v 1.20 2011/12/03 12:09:07 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 @@ -153,7 +153,6 @@ btree_open(void) DB *db; memset(&info, 0, sizeof(BTREEINFO)); - info.lorder = 4321; info.flags = R_DUP; db = dbopen(MANDOC_DB, O_RDONLY, 0, DB_BTREE, &info); @@ -542,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));