From 3c482f4efa86f2849bc18f95bac9fb30f045e826 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 7 Nov 2009 21:11:16 +0000 Subject: [PATCH] Fixed uninitialized variables in Fl_Timer. STR #2287 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/forms_timer.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/forms_timer.cxx b/src/forms_timer.cxx index 031d67f27..9699eaf6e 100644 --- a/src/forms_timer.cxx +++ b/src/forms_timer.cxx @@ -137,6 +137,7 @@ Fl_Timer::Fl_Timer(uchar t, int X, int Y, int W, int H, const char* l) delay = 0; on = 0; direction_ = 0; + lastsec = lastusec = total = 0; type(t); if (t == FL_HIDDEN_TIMER) clear_visible(); if (t == FL_VALUE_TIMER) align(FL_ALIGN_LEFT);