diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-09-04 07:22:45 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-09-04 07:22:45 (GMT) |
commit | 5e237c28521e9a2146369913d30a10b2712b9fc2 (patch) | |
tree | e80d5f727d70e081a7dc7285b869d914aa1eb186 /generic/tclUtil.c | |
parent | 5441277b9a31d73e4d91383584882c9303e5c758 (diff) | |
download | tcl-5e237c28521e9a2146369913d30a10b2712b9fc2.zip tcl-5e237c28521e9a2146369913d30a10b2712b9fc2.tar.gz tcl-5e237c28521e9a2146369913d30a10b2712b9fc2.tar.bz2 |
Fix 3 trivial (possible) errors, discovered by covertity.com
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index 27e2474..b089132 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -3580,10 +3580,9 @@ UpdateStringOfEndOffset( register Tcl_Obj *objPtr) { char buffer[TCL_INTEGER_SPACE + 5]; - register int len; + register int len = 3; memcpy(buffer, "end", 4); - len = sizeof("end") - 1; if (objPtr->internalRep.longValue != 0) { buffer[len++] = '-'; len += TclFormatInt(buffer+len, -(objPtr->internalRep.longValue)); |