Changeset 1af0a72


Ignore:
Timestamp:
May 3, 2010, 8:00:58 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.6
Children:
b96cc28
Parents:
9e0bc3b
git-author:
David Benjamin <davidben@mit.edu> (04/30/10 00:23:11)
git-committer:
Nelson Elhage <nelhage@mit.edu> (05/03/10 20:00:58)
Message:
Avoids segfault on NULL curswin for viewwin

When the screen is too small, newwin() fails and gives back a NULL
window. This avoids the crash.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • viewwin.c

    rf449096 r1af0a72  
    6767{
    6868  owl_fmtext fm1, fm2;
     69
     70  /* avoid segfault when screen too small to create curswin */
     71  if (v->curswin == NULL)
     72    return;
    6973 
    7074  werase(v->curswin);
Note: See TracChangeset for help on using the changeset viewer.