=================================================================== RCS file: /cvs/mandoc/Attic/apropos_db.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -p -r1.31 -r1.32 --- mandoc/Attic/apropos_db.c 2012/03/24 01:46:25 1.31 +++ mandoc/Attic/apropos_db.c 2012/03/25 00:48:47 1.32 @@ -1,4 +1,4 @@ -/* $Id: apropos_db.c,v 1.31 2012/03/24 01:46:25 kristaps Exp $ */ +/* $Id: apropos_db.c,v 1.32 2012/03/25 00:48:47 kristaps Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -19,6 +19,8 @@ #include "config.h" #endif +#include + #include #include #include @@ -426,6 +428,7 @@ apropos_search(int pathsz, char **paths, const struct */ for (i = 0; i < pathsz; i++) { + assert('/' == paths[i][0]); if (chdir(paths[i])) continue; if (single_search(&tree, opts, expr, terms, mc, i))