git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4258
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
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:
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);