[RDY] Fix clang analysis warnings. (3)

Continues #1389 and #1431.

Fixes **15** warnings in:
- option.c
- quickfix.c
- regexp_nfa.c
- search.c
- spell.c
- syntax.c
- undo.c
- charset.c