summaryrefslogtreecommitdiffstats
path: root/generic/tclOOCall.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-03-26 13:11:58 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-03-26 13:11:58 (GMT)
commit543416450d89c9fdc7df13eea26715813d861a91 (patch)
tree1ec7e6b5fe1c76efc9090e4dee8f0f6a8b82bc58 /generic/tclOOCall.c
parentd23835257d7cdbf7c914e23117f34386a03420f4 (diff)
downloadtcl-543416450d89c9fdc7df13eea26715813d861a91.zip
tcl-543416450d89c9fdc7df13eea26715813d861a91.tar.gz
tcl-543416450d89c9fdc7df13eea26715813d861a91.tar.bz2
Fix uninit variable (thanks to dgp for reporting)
Diffstat (limited to 'generic/tclOOCall.c')
-rw-r--r--generic/tclOOCall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclOOCall.c b/generic/tclOOCall.c
index 8b1aeb1..760bd7b 100644
--- a/generic/tclOOCall.c
+++ b/generic/tclOOCall.c
@@ -1005,7 +1005,7 @@ TclOOGetCallContext(
&cb, NULL, 0, NULL);
callPtr->flags |= OO_UNKNOWN_METHOD;
callPtr->epoch = -1;
- if (count == callPtr->numChain) {
+ if (callPtr->numChain == 0) {
TclOODeleteChain(callPtr);
return NULL;
}