]> git.wh0rd.org Git - nano.git/commitdiff
Fix for segfault when window size is too small by Andreas Amann <andreas.amann@tyndal...
authorChris Allegretta <chrisa@asty.org>
Sat, 31 May 2008 22:23:16 +0000 (22:23 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 31 May 2008 22:23:16 +0000 (22:23 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4256 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/nano.c

index 18faa223e94dc86a93d9ba1f0de7c6d1b5d2da20..5ad2ff2b43671c64d429a09a58a5ec341e5b0363 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 GNU nano 2.1.1 - 2008.04.01
 
+2008-05-31 Chris Allegretta <chrisa@asty.org>
+       * Fix for seg fault when window size too small, by 
+          Andreas Amann <andreas.amann@tyndall.ie>
+
 2008-05-31 Chris Allegretta <chrisa@asty.org>
        * Added the following contributed files, by owner:
          Donnie Berkholz <dberkholz@gentoo.org>
index 18fb82e2293811875e128dbd8f5b4bc4c39d1c6f..950cffcb6d4dd985f12804c454becf77f67a4a74 100644 (file)
@@ -611,7 +611,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);