From dc7136a08295de0eb3bf369db6f2049ad65aa750 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 21 Aug 2008 04:24:25 +0000 Subject: [PATCH] * text.c (do_enter): Fix issue when compiled with --enable-debug, fixes Savannah bug 24092. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4309 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 ++- src/text.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6bab4bef..b16d2e7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,10 @@ 2008-08-21 Chris Allegretta * text.c: Change error messages where we may possibly get into a bad state and urge the user to save when this happens. Originally by Benno Schulenberg + * text.c (do_enter): Fix issue when compiled with --enable-debug, fixes Savannah bug 24092. 2008-08-08 Magnus Granberg / Adam Conrad - * files.c: (write_file): Add needed flags to open() calls when writing out files. Fixes Savannah bug + * files.c (write_file): Add needed flags to open() calls when writing out files. Fixes Savannah bug #23827: Compilation fails with -D_FORTIFY_SOURCE=2 2008-08-08 Chris Allegretta diff --git a/src/text.c b/src/text.c index 783f64f9..3c59492c 100644 --- a/src/text.c +++ b/src/text.c @@ -649,7 +649,7 @@ void do_enter(void) filestruct *newnode = make_new_node(openfile->current); size_t extra = 0; - assert(openfile->current != NULL && xopenfile->current->data != NULL); + assert(openfile->current != NULL && openfile->current->data != NULL); #ifndef NANO_TINY update_undo(SPLIT); -- 2.39.5