summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormig <mig>2011-03-19 19:00:19 (GMT)
committermig <mig>2011-03-19 19:00:19 (GMT)
commitf91eaa901468a1b6066b1cd8d7bc0b05684f17c3 (patch)
treea25158856ccb24212629630c1cbb7e854254d326
parentad01c2a5d674e9304c376a1872a4ec39e03972b8 (diff)
downloadtcl-f91eaa901468a1b6066b1cd8d7bc0b05684f17c3.zip
tcl-f91eaa901468a1b6066b1cd8d7bc0b05684f17c3.tar.gz
tcl-f91eaa901468a1b6066b1cd8d7bc0b05684f17c3.tar.bz2
uninited var in last commit
-rw-r--r--generic/tclAlloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c
index efaf6ac..f186d67 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -387,6 +387,7 @@ Block2Ptr(
blockPtr->reqSize = reqSize;
ptr = (void *) (((char *)blockPtr) + OFFSET);
#if RCHECK
+ TclPanic("RCHECK??");
((unsigned char *)(ptr))[reqSize] = MAGIC;
#endif
return (char *) ptr;
@@ -1224,8 +1225,8 @@ GetBlocks(
n = nBuckets;
size = 0; /* lint */
while (--n > bucket) {
- size = bucketInfo[n].blockSize;
if (cachePtr->buckets[n].numFree > 0) {
+ size = bucketInfo[n].blockSize;
blockPtr = cachePtr->buckets[n].firstPtr;
cachePtr->buckets[n].firstPtr = blockPtr->nextBlock;
cachePtr->buckets[n].numFree--;
@@ -1238,6 +1239,7 @@ GetBlocks(
size = 0; /* lint */
while (--n > bucket) {
if (sharedPtr->buckets[n].numFree > 0) {
+ size = bucketInfo[n].blockSize;
LockBucket(cachePtr, n);
if (sharedPtr->buckets[n].numFree > 0) {
blockPtr = sharedPtr->buckets[n].firstPtr;