Changeset fe4c786


Ignore:
Timestamp:
Apr 30, 2010, 12:23:11 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
7141d75
Parents:
719173c4
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 rfe4c786  
    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.