diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2005-10-09 20:05:17 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2005-10-09 20:05:17 (GMT) |
commit | 63bc8ab8cf7635622a2f4da1feeff6a13acfd8df (patch) | |
tree | 85a5e00388fcff9f61defad95d92397ff39438f1 /generic/tclStrToD.c | |
parent | 76faac0f28fe9661f23ff9e35f44df1d899420e5 (diff) | |
download | tcl-63bc8ab8cf7635622a2f4da1feeff6a13acfd8df.zip tcl-63bc8ab8cf7635622a2f4da1feeff6a13acfd8df.tar.gz tcl-63bc8ab8cf7635622a2f4da1feeff6a13acfd8df.tar.bz2 |
* generic/tclBasic.c:
* generic/tclExecute.c:
* generic/tclStrToD.c:
* generic/tclStringObj.c: initialise variables to avoid compiler
warnings ([Bug 1320818] among others).
Diffstat (limited to 'generic/tclStrToD.c')
-rwxr-xr-x | generic/tclStrToD.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c index 7f8ecd5..f733a7c 100755 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStrToD.c,v 1.9 2005/10/08 14:42:45 dgp Exp $ + * RCS: @(#) $Id: tclStrToD.c,v 1.10 2005/10/09 20:05:24 msofer Exp $ * *---------------------------------------------------------------------- */ @@ -292,7 +292,8 @@ TclParseNumber( Tcl_Interp* interp, * in an acceptable number */ size_t acceptLen; /* Number of characters following that point */ int status = TCL_OK; /* Status to return to caller */ - char d; /* Last hexadecimal digit scanned */ + char d = 0; /* Last hexadecimal digit scanned; initialized + * to avoid a compiler warning. */ int shift = 0; /* Amount to shift when accumulating binary */ #ifdef TIP_114_FORMATS int explicitOctal = 0; |