diff --git a/ChangeLog b/ChangeLog index 17244711..00426b33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-02-28 Benno Schulenberg + * src/rcfile.c (parse_header_exp): Don't continue when something is + wrong -- skip the rest of the line. This fixes Savannah bug #47289. + 2016-02-26 Benno Schulenberg * doc/man/nanorc.5, doc/texinfo/nano.texi, doc/syntax/nanorc.nanorc, doc/nanorc.sample.in: Correct the description of 'justifytrim', add diff --git a/src/rcfile.c b/src/rcfile.c index 6b03e6ac..53e221de 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -880,8 +880,7 @@ void parse_header_exp(char *ptr) if (*ptr != '"') { rcfile_error( N_("Regex strings must begin and end with a \" character")); - ptr = parse_next_regex(ptr); - continue; + return; } ptr++;