nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 7fc0ada6ccb505798635829d6a7a7e9a08aba6d6
parent 20d3cb0614b9de5e5c9966c8bdb5e4faf585ca8d
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Mon, 29 Aug 2005 18:52:06 +0000

fix compilation with --enable-debug


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3006 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/global.c | 6++++--
Msrc/winio.c | 2+-
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -1220,8 +1220,10 @@ void thanks_for_all_the_fish(void) syntaxes->extensions = bob->next; free(bob->ext_regex); - regfree(bob->ext); - free(bob->ext); + if (bob->ext != NULL) { + regfree(bob->ext); + free(bob->ext); + } free(bob); } while (syntaxes->color != NULL) { diff --git a/src/winio.c b/src/winio.c @@ -3907,7 +3907,7 @@ void do_cursorpos(bool constant) /* Check whether totsize is correct. If it isn't, there is a bug * somewhere. */ - assert(openfile->current != openfile->filebot || i == totsize); + assert(openfile->current != openfile->filebot || i == openfile->totsize); if (constant && disable_cursorpos) { disable_cursorpos = FALSE;