=================================================================== RCS file: /cvs/mandoc/mansearch.c,v retrieving revision 1.66 retrieving revision 1.69 diff -u -p -r1.66 -r1.69 --- mandoc/mansearch.c 2016/07/19 21:31:55 1.66 +++ mandoc/mansearch.c 2017/03/03 13:11:21 1.69 @@ -1,7 +1,7 @@ -/* $OpenBSD: mansearch.c,v 1.66 2016/07/19 21:31:55 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 Ingo Schwarze + * Copyright (c) 2013, 2014, 2015, 2016 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -15,12 +15,15 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "config.h" #include #include #include +#if HAVE_ERR #include +#endif #include #include #include @@ -657,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;