diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 26aebd6347..6296d4ca2e 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,10 @@ +19990910-17:00 EDT David G. Holm + * source/rtl/inkey.c + ! In HARBOUR HB_INKEY( void ), the double seconds variable has to + be initialized to 0.0, because not all compilers initialize all + local variables to 0 and seconds is not assigned if INKEY() was + called with no parameters. + 19990910-22:10 GMT+1 Victor Szel * source/vm/hvm.c ! Fixed the operator overloading feature. (Reported by David) diff --git a/harbour/source/rtl/inkey.c b/harbour/source/rtl/inkey.c index 15b2235402..e3b1fe289c 100644 --- a/harbour/source/rtl/inkey.c +++ b/harbour/source/rtl/inkey.c @@ -516,7 +516,7 @@ HARBOUR HB_INKEY( void ) int args = hb_pcount(); int key = 0; BOOL wait = FALSE, forever = FALSE; - double seconds; + double seconds = 0.0; HB_inkey_enum event_mask = hb_set.HB_SET_EVENTMASK; /* Default to the SET input event mask */ if( args > 2 )