]> git.cameronkatri.com Git - mandoc.git/blobdiff - mansearch.c
Fix blunder in previous: we must keep the line parse buffer
[mandoc.git] / mansearch.c
index 30e7768b48bcdc4f12e445adad2e76c492e6887c..7f81b6ae50fcdbab471a76f3a386217ee09f8d92 100644 (file)
@@ -21,7 +21,9 @@
 #include <sys/types.h>
 
 #include <assert.h>
+#if HAVE_ERR
 #include <err.h>
+#endif
 #include <errno.h>
 #include <fcntl.h>
 #include <glob.h>
@@ -658,6 +660,7 @@ exprterm(const struct mansearch *search, int argc, char *argv[], int *argi)
         * If needed, request regular expression handling.
         */
 
+       cs = 1;
        if (search->argmode == ARG_WORD) {
                e->bits = TYPE_Nm;
                e->match.type = DBM_REGEX;