summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-03 10:33:37 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-03 10:33:37 +0000
commit4b97d6cbf10c15cfa2d3166364fcdeb8f16ae84a (patch)
treefc4a303fa9242edbb283e660663f84aa1a54896f /src
parent50c963de1214177c3d3f74e4546e16f36984fc88 (diff)
Fix uninitialized variable compiler warning (part of STR #2813).
Thanks to Csaba for finding this and providing a patch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Text_Display.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 7159a036d..2ae07fa66 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -3695,7 +3695,7 @@ void Fl_Text_Display::draw(void) {
text_area.w+LEFT_MARGIN+RIGHT_MARGIN,
text_area.h);
- int X, Y;
+ int X = 0, Y = 0;
if (position_to_xy(mCursorPos, &X, &Y)) {
draw_cursor(X, Y);
mCursorOldY = Y;