diff options
Diffstat (limited to 'generic/tclConfig.c')
-rw-r--r-- | generic/tclConfig.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/generic/tclConfig.c b/generic/tclConfig.c index 756b396..c65c501 100644 --- a/generic/tclConfig.c +++ b/generic/tclConfig.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclConfig.c,v 1.10 2005/11/01 15:30:52 dkf Exp $ + * RCS: @(#) $Id: tclConfig.c,v 1.11 2006/09/22 18:13:28 andreas_kupries Exp $ */ #include "tclInt.h" @@ -68,14 +68,18 @@ Tcl_RegisterConfig( CONST char *valEncoding) /* Name of the encoding used to store the * configuration values, ASCII, thus UTF-8. */ { - Tcl_Encoding venc = Tcl_GetEncoding(NULL, valEncoding); - Tcl_Obj *pDB = GetConfigDict(interp); - Tcl_Obj *pkg = Tcl_NewStringObj(pkgName, -1); + Tcl_Encoding venc; + Tcl_Obj *pDB; + Tcl_Obj *pkg; Tcl_Obj *pkgDict; Tcl_DString cmdName; Tcl_Config *cfg; int res; + venc = Tcl_GetEncoding(NULL, valEncoding); + pDB = GetConfigDict(interp); + pkg = Tcl_NewStringObj(pkgName, -1); + /* * Phase I: Adding the provided information to the internal database of * package meta data. |