diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-03 13:11:21 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-03 13:11:21 +0000 |
commit | a86259b51b74480e80c3daacead5b638d4cf0206 (patch) | |
tree | efc1ee6b9dbc2203750770da97b5b3573b0bf47c | |
parent | 534f7109d67be81218d79589e38dd8606a7eee5e (diff) | |
download | mandoc-a86259b51b74480e80c3daacead5b638d4cf0206.tar.gz mandoc-a86259b51b74480e80c3daacead5b638d4cf0206.tar.zst mandoc-a86259b51b74480e80c3daacead5b638d4cf0206.zip |
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.
-rw-r--r-- | mansearch.c | 1 |
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; |