diff options
Diffstat (limited to 'apropos_db.c')
-rw-r--r-- | apropos_db.c | 3 |
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)) |