mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
Fix STR #2643: derefenced NULL pointer, if Xinerama is available, but inactive.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif HAVE_XINERAMA
|
#elif HAVE_XINERAMA
|
||||||
if (num_screens > 0) {
|
if (num_screens > 0 && screens) { // screens == NULL if !XineramaIsActive(fl_display)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < num_screens; i ++) {
|
for (i = 0; i < num_screens; i ++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user