summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-27 09:17:20 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-27 09:17:33 +0100
commitd851106f47314680fb619fb94f97878a7d5fbed6 (patch)
tree6a54184aac3bc922996ab96b893948239b4428d1 /src
parentd7985607d6dd8308f104d84c778080731fa23c9a (diff)
Prevent compilation warning about uninitialized variables.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/X11/Fl_X11_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
index 90a838126..539fdfdb3 100644
--- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
@@ -786,7 +786,7 @@ Fl_RGB_Image *Fl_X11_Screen_Driver::read_win_rectangle(int X, int Y, int w, int
if (!image) {
// fetch absolute coordinates
- int dx, dy, sx, sy, sw, sh;
+ int dx = 0, dy = 0, sx = 0, sy = 0, sw = 0, sh = 0;
Window child_win;
if (win) {