Author: AlbrechtS
Date: 2011-06-06 02:37:21 -0700 (Mon, 06 Jun 2011)
New Revision: 8783
Log:
Fix potential NULL pointer dereference, if !XineramaIsActive(...).
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-06-06 08:29:00 UTC (rev
8782)
+++ branches/branch-1.3/src/screen_xywh.cxx 2011-06-06 09:37:21 UTC (rev
8783)
@@ -259,7 +259,7 @@
}
#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;
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit