commit e39423b49d16dc33adc8ae638cfb3d57e17f0b85
parent 04669b5635ccfcf7b60c29acff301c436f787057
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 29 Feb 2016 15:40:13 +0000
Fixing breakage of r5695 -- I confused nregcomp() with regcomp(). :(
Hhrr... Names that don't seem to differ...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5702 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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
@@ -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. */