From: zwelch Date: Fri, 15 May 2009 23:35:27 +0000 (+0000) Subject: Initialize a more variables in jim.c to allow gcc-4.4 to build. X-Git-Tag: v0.2.0~713 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea3ddc7e4f0bbd82c6d15210a0699a9941480174;p=openocd Initialize a more variables in jim.c to allow gcc-4.4 to build. Fix provided by Benjamin Schmidt . git-svn-id: svn://svn.berlios.de/openocd/trunk@1797 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/helper/jim.c b/src/helper/jim.c index 35ccecf0..78b6e6ce 100644 --- a/src/helper/jim.c +++ b/src/helper/jim.c @@ -7642,8 +7642,8 @@ static int ScanOneEntry(Jim_Interp *interp, const char *str, long pos, scanned += 1; break; case 'd': case 'o': case 'x': case 'u': case 'i': { - jim_wide jwvalue; - long lvalue; + jim_wide jwvalue = 0; + long lvalue = 0; char *endp; /* Position where the number finished */ int base = descr->type == 'o' ? 8 : descr->type == 'x' ? 16