Fix potential NULL pointer dereference, if !XineramaIsActive(...).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2011-06-06 09:37:21 +00:00
parent 385ab5f354
commit c53313ac6e
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int n) {
}
#else
#if HAVE_XINERAMA
if (num_screens > 0) {
if (num_screens > 0 && screens) {
X = screens[n].x_org;
Y = screens[n].y_org;
W = screens[n].width;