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