From ea4a49cf9c9c661c8ff1287fbf8fd801fcb8ed12 Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Fri, 10 Sep 1999 21:15:59 +0000 Subject: [PATCH] See ChangeLog entry 19990910-17:00 EDT David G. Holm --- harbour/ChangeLog | 7 +++++++ harbour/source/rtl/inkey.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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 )