summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-10-09 22:16:23 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-10-09 22:16:23 (GMT)
commit4a275ce643088004228f8c5c59ad92daca5bbcde (patch)
treec5f1c5a11ceb5babc8fe33fbf3f474699728ad8c /generic/tclCompile.c
parent2d2f6efcd21573fbea2ada1dfcd36548e25e3568 (diff)
downloadtcl-4a275ce643088004228f8c5c59ad92daca5bbcde.zip
tcl-4a275ce643088004228f8c5c59ad92daca5bbcde.tar.gz
tcl-4a275ce643088004228f8c5c59ad92daca5bbcde.tar.bz2
Fix my silly blunder with an undeclared variable.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index d4c5d9e..9ea7d2d 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.c,v 1.134 2007/09/25 20:27:17 dkf Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.135 2007/10/09 22:16:23 dkf Exp $
*/
#include "tclInt.h"
@@ -3240,9 +3240,10 @@ TclPrintInstruction(
unsigned char *pc) /* Points to first byte of instruction. */
{
Tcl_Obj *bufferObj;
+ int numBytes;
TclNewObj(bufferObj);
- FormatInstruction(codePtr, pc, bufferObj);
+ numBytes = FormatInstruction(codePtr, pc, bufferObj);
fprintf(stdout, "%s", TclGetString(bufferObj));
Tcl_DecrRefCount(bufferObj);
return numBytes;