summaryrefslogtreecommitdiffstats
path: root/apropos_db.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-03-25 00:48:47 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-03-25 00:48:47 +0000
commit51fb2f9406e8ac7b3dae3daa58f1d54a085e530d (patch)
tree8beff5d6d0e258c1ae727a309072d3bb4389cf51 /apropos_db.c
parentc62650afbdb252470689d5248f5b941403bb97b3 (diff)
downloadmandoc-51fb2f9406e8ac7b3dae3daa58f1d54a085e530d.tar.gz
Some documentation nits.
Diffstat (limited to 'apropos_db.c')
-rw-r--r--apropos_db.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apropos_db.c b/apropos_db.c
index 2271e28c..368c8faf 100644
--- a/apropos_db.c
+++ b/apropos_db.c
@@ -19,6 +19,8 @@
#include "config.h"
#endif
+#include <sys/param.h>
+
#include <assert.h>
#include <fcntl.h>
#include <regex.h>
@@ -426,6 +428,7 @@ apropos_search(int pathsz, char **paths, const struct opts *opts,
*/
for (i = 0; i < pathsz; i++) {
+ assert('/' == paths[i][0]);
if (chdir(paths[i]))
continue;
if (single_search(&tree, opts, expr, terms, mc, i))