=================================================================== RCS file: /cvs/mandoc/mansearch.c,v retrieving revision 1.67 retrieving revision 1.69 diff -u -p -r1.67 -r1.69 --- mandoc/mansearch.c 2016/07/20 00:23:14 1.67 +++ mandoc/mansearch.c 2017/03/03 13:11:21 1.69 @@ -1,4 +1,4 @@ -/* $OpenBSD: mansearch.c,v 1.67 2016/07/20 00:23:14 schwarze Exp $ */ +/* $OpenBSD: mansearch.c,v 1.69 2017/03/03 13:11:21 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015, 2016 Ingo Schwarze @@ -21,7 +21,9 @@ #include #include +#if HAVE_ERR #include +#endif #include #include #include @@ -658,6 +660,7 @@ exprterm(const struct mansearch *search, int argc, cha * If needed, request regular expression handling. */ + cs = 1; if (search->argmode == ARG_WORD) { e->bits = TYPE_Nm; e->match.type = DBM_REGEX;