diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2005-11-18 17:23:02 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2005-11-18 17:23:02 (GMT) |
commit | 1af23392dd3eb0103a5f38c248eceecc5a86ac63 (patch) | |
tree | 2bab9b8db022d97035b87eaa5a7cfa738f60183f /generic/tclObj.c | |
parent | 65b8110408a9e9de87923320659674a3871d9ea5 (diff) | |
download | tcl-1af23392dd3eb0103a5f38c248eceecc5a86ac63.zip tcl-1af23392dd3eb0103a5f38c248eceecc5a86ac63.tar.gz tcl-1af23392dd3eb0103a5f38c248eceecc5a86ac63.tar.bz2 |
* generic/tclObj.c (GetBignumFromObj): replace NULL with
tclEmptyStringRep to stop memcpy from complaining in a debug build
(the corresponding branch is eliminated by the optimiser
otherwise).
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r-- | generic/tclObj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c index e57681f..ea66c42 100644 --- a/generic/tclObj.c +++ b/generic/tclObj.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclObj.c,v 1.100 2005/11/18 15:58:18 dgp Exp $ + * RCS: @(#) $Id: tclObj.c,v 1.101 2005/11/18 17:23:02 msofer Exp $ */ #include "tclInt.h" @@ -2745,7 +2745,7 @@ GetBignumFromObj( objPtr->internalRep.ptrAndLongRep.value = 0; objPtr->typePtr = NULL; if (objPtr->bytes == NULL) { - TclInitStringRep(objPtr, NULL, 0); + TclInitStringRep(objPtr, tclEmptyStringRep, 0); } } return TCL_OK; |