Commit 7fc0ada6 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

fix compilation with --enable-debug

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3006 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 3 deletions
+5 -3
......@@ -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) {
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment