diff --git a/ChangeLog b/ChangeLog index 5321265b98fabae732bc6a24f8966a61ef17ac99..a8be4a00e72e94a5aa89500e71993187854a5025 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ * src/nano.h, src/rcfile.c: Arrange some things more orderly. * src/rcfile.c (parse_rcfile): Close an extended syntax again. * src/rcfile.c (parse_rcfile): Rename a variable. + * src/rcfile.c (grab_and_store): Fix breakage of r5695. 2016-02-28 Benno Schulenberg <bensberg@justemail.net> * src/rcfile.c (parse_header_exp): Don't continue when something is diff --git a/src/rcfile.c b/src/rcfile.c index 76a8b277f76aa1fb78042121db1e77eea8e79fa6..e0ee6bae5948ffb7d598f05f93c68f3fdf992134 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -899,7 +899,7 @@ void grab_and_store(char *ptr, const char *kind, regexlisttype **storage) return; /* If the regex string is malformed, skip it. */ - if (nregcomp(regexstring, REG_NOSUB) != 0) + if (!nregcomp(regexstring, REG_NOSUB)) continue; /* Copy the regex into a struct, and hook this in at the end. */