diff options
author | dgp <dgp@users.sourceforge.net> | 2011-07-19 19:31:31 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-07-19 19:31:31 (GMT) |
commit | 825281a370de5345ff13fbb6c8fb612afb93295a (patch) | |
tree | 94cd602dcf7621440e6a3ecbe365cb755ee368d3 /generic/tclUtil.c | |
parent | 6dc6abffa7924bc7ef004be95916702634242133 (diff) | |
parent | 66bf88283d33ff4538e807214de979b630e80158 (diff) | |
download | tcl-825281a370de5345ff13fbb6c8fb612afb93295a.zip tcl-825281a370de5345ff13fbb6c8fb612afb93295a.tar.gz tcl-825281a370de5345ff13fbb6c8fb612afb93295a.tar.bz2 |
3371644 Repair failure to properly handle (length == -1) in TclConvertElement().
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index 55103e3..51508d2 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -1261,9 +1261,7 @@ int TclConvertElement( p[1] = '#'; p += 2; src++; - if (length > 0) { - length--; - } + length -= (length > 0); } else { conversion = CONVERT_BRACE; } |