From: Benno Schulenberg Date: Sun, 2 Aug 2015 20:27:45 +0000 (+0000) Subject: Initializing also openfile->syntax. X-Git-Tag: v2.5.0~124 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8a06dfa4d782d789468e7ed0e4a61c5dab58cc80;p=nano.git Initializing also openfile->syntax. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5338 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 0f2c2747..6274f602 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-08-02 Benno Schulenberg + * src/files.c (initialize_buffer): Initialize also openfile->syntax. + This addresses Debian bug #787914 reported by Paul Wise. + 2015-08-01 Benno Schulenberg * src/nano.c (precalc_multicolorinfo): Set each multiline-color value instead of OR-ing it. This fixes Savannah bug #45640. diff --git a/src/files.c b/src/files.c index 832613ae..04816d74 100644 --- a/src/files.c +++ b/src/files.c @@ -83,6 +83,7 @@ void initialize_buffer(void) openfile->lock_filename = NULL; #endif #ifndef DISABLE_COLOR + openfile->syntax = NULL; openfile->colorstrings = NULL; #endif }