]> git.wh0rd.org Git - nano.git/commitdiff
Segfault fix for too small window size by Andreas Amann <andreas.amann@tyndall.ie>
authorChris Allegretta <chrisa@asty.org>
Sat, 31 May 2008 22:41:09 +0000 (22:41 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 31 May 2008 22:41:09 +0000 (22:41 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4258 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/nano.c

index 1f98a6717b9f04514a09890ce04e344f170ddb92..f6d9c57060ec3525b5815cb38811e702a1d4e73e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
 CVS code -
+- nano.c:
+       - Fix for segfault on resize by Andreas Amann <andreas.amann@tyndall.ie>
 
 GNU nano 2.0.7 - 2007.12.20
 - General:
index 2c193f00e7c673c0ed219638c0f55e6e6271af3e..e43dfe1baac590ff69ea4a5ef989664590e0bba5 100644 (file)
@@ -610,7 +610,7 @@ void die(const char *msg, ...)
     va_end(ap);
 
     /* Save the current file buffer if it's been modified. */
-    if (openfile->modified) {
+    if (openfile && openfile->modified) {
        /* If we've partitioned the filestruct, unpartition it now. */
        if (filepart != NULL)
            unpartition_filestruct(&filepart);