summaryrefslogtreecommitdiffstats
path: root/mansearch.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-03 13:11:21 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-03 13:11:21 +0000
commit6c693ba24fb97a348d31fd701b83ea5125baf39f (patch)
tree39bf45ca9e12f1706ca072fbcd8903fd3e5e63cb /mansearch.c
parent0bd8e44683c8ada83b23a5f329ef7adf81779d00 (diff)
downloadmandoc-6c693ba24fb97a348d31fd701b83ea5125baf39f.tar.gz
A missing initialization could randomly cause regular expression
searches to be case-insensitive that ought to be case sensitive. Found by jsg@ with scan-build.
Diffstat (limited to 'mansearch.c')
-rw-r--r--mansearch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mansearch.c b/mansearch.c
index 6e689bd3..7f81b6ae 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -660,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;