Author: AlbrechtS
Date: 2011-05-24 03:20:25 -0700 (Tue, 24 May 2011)
New Revision: 8733
Log:
Fix STR #2643: derefenced NULL pointer, if Xinerama is available, but inactive.
Modified:
branches/branch-1.3/src/screen_xywh.cxx
Modified: branches/branch-1.3/src/screen_xywh.cxx
===================================================================
--- branches/branch-1.3/src/screen_xywh.cxx 2011-05-23 21:20:57 UTC (rev
8732)
+++ branches/branch-1.3/src/screen_xywh.cxx 2011-05-24 10:20:25 UTC (rev
8733)
@@ -237,7 +237,7 @@
}
}
#elif HAVE_XINERAMA
- if (num_screens > 0) {
+ if (num_screens > 0 && screens) { // screens == NULL if
!XineramaIsActive(fl_display)
int i;
for (i = 0; i < num_screens; i ++) {
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit