fix compilation with --enable-debug

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3006 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-08-29 18:52:06 +00:00
parent 20d3cb0614
commit 7fc0ada6cc
2 changed files with 5 additions and 3 deletions

View File

@ -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) {

View File

@ -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;