Author: AlbrechtS
Date: 2011-04-23 05:27:58 -0700 (Sat, 23 Apr 2011)
New Revision: 8620
Log:
Fixed potential uninitialized pointer usage.


Modified:
   branches/branch-1.3/src/Fl_x.cxx

Modified: branches/branch-1.3/src/Fl_x.cxx
===================================================================
--- branches/branch-1.3/src/Fl_x.cxx    2011-04-22 17:30:37 UTC (rev 8619)
+++ branches/branch-1.3/src/Fl_x.cxx    2011-04-23 12:27:58 UTC (rev 8620)
@@ -1946,7 +1946,7 @@
   XQueryTree(fl_display, fl_window, &root, &parent, &children, &n); if (n) 
XFree(children);
   XTranslateCoordinates(fl_display, fl_window, parent, 0, 0, &bx, &bt, 
&child_win);
   fl_window = parent;
-  uchar *top_image, *left_image, *right_image, *bottom_image;
+  uchar *top_image = 0, *left_image = 0, *right_image = 0, *bottom_image = 0;
   top_image = fl_read_image(NULL, 0, 0, - (win->w() + 2 * bx), bt);
   if (bx) {
     left_image = fl_read_image(NULL, 0, bt, -bx, win->h() + bx);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to