Fix for segfault when window size is too small by Andreas Amann <andreas.amann@tyndall.ie>
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4256 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
ed505f5893
commit
e67bf806bd
|
@ -1,5 +1,9 @@
|
||||||
GNU nano 2.1.1 - 2008.04.01
|
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>
|
2008-05-31 Chris Allegretta <chrisa@asty.org>
|
||||||
* Added the following contributed files, by owner:
|
* Added the following contributed files, by owner:
|
||||||
Donnie Berkholz <dberkholz@gentoo.org>
|
Donnie Berkholz <dberkholz@gentoo.org>
|
||||||
|
|
|
@ -611,7 +611,7 @@ void die(const char *msg, ...)
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
/* Save the current file buffer if it's been modified. */
|
/* 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 we've partitioned the filestruct, unpartition it now. */
|
||||||
if (filepart != NULL)
|
if (filepart != NULL)
|
||||||
unpartition_filestruct(&filepart);
|
unpartition_filestruct(&filepart);
|
||||||
|
|
Loading…
Reference in New Issue