Skip to content

Commit

Permalink
Fix uninitialized variable compiler warning (part of STR #2813).
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Albrecht Schlosser committed Apr 3, 2015
1 parent 50c963d commit 4b97d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_Text_Display.cxx
Expand Up @@ -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;
Expand Down

0 comments on commit 4b97d6c

Please sign in to comment.