From 178648448614a61b4efb84a1c1830eed3dbb38aa Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 11 Mar 2016 17:14:30 +0000 Subject: [PATCH] Fixing compilation when configured with --enable-tiny plus --enable-nanorc. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5722 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/rcfile.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 86b413d8..032355e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ * src/rcfile.c (color_to_short): Elide a variable. * src/rcfile.c (grab_and_store): First check that there is an open syntax before checking that it is named "default". + * src/rcfile.c (parse_rcfile): Fix compilation when configured with + --enable-tiny plus --enable-nanorc. 2016-03-10 Benno Schulenberg * src/rcfile.c (grab_and_store): Do not accept 'header" and 'magic' diff --git a/src/rcfile.c b/src/rcfile.c index cdf112e3..5b86c362 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -1206,9 +1206,9 @@ void parse_rcfile(FILE *rcstream if (opensyntax && endcolor == NULL) rcfile_error(N_("Syntax \"%s\" has no color commands"), live_syntax->name); -#endif opensyntax = FALSE; +#endif free(buf); fclose(rcstream); -- 2.39.5