diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2006-08-14 10:01:06 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2006-08-14 10:01:06 (GMT) |
commit | ef64babb61a918650674c395526ecc89ba85c709 (patch) | |
tree | ab785ee4f077329bed5f8e198165b78c7c6bac0a | |
parent | be60925512e642d383cdd2af3ba6e46493ddd54e (diff) | |
download | tcl-ef64babb61a918650674c395526ecc89ba85c709.zip tcl-ef64babb61a918650674c395526ecc89ba85c709.tar.gz tcl-ef64babb61a918650674c395526ecc89ba85c709.tar.bz2 |
Added missing braces to validation code
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | library/clock.tcl | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2006-08-14 Donal K. Fellows <donal.k.fellows@manchester.ac.uk> + + * library/clock.tcl (::tcl::clock::add): Added missing braces to + clockval validation code. Pointed out on comp.lang.tcl. + 2006-08-11 Donal K. Fellows <donal.k.fellows@manchester.ac.uk> * generic/tclNamesp.c: Improvements in buffer management to make diff --git a/library/clock.tcl b/library/clock.tcl index d6ef8a3..663fac0 100644 --- a/library/clock.tcl +++ b/library/clock.tcl @@ -13,7 +13,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: clock.tcl,v 1.33 2006/07/31 03:27:13 kennykb Exp $ +# RCS: @(#) $Id: clock.tcl,v 1.34 2006/08/14 10:01:06 dkf Exp $ # #---------------------------------------------------------------------- @@ -4341,7 +4341,7 @@ proc ::tcl::clock::add { clockval args } { ?number units?...\ ?-gmt boolean? ?-locale LOCALE? ?-timezone ZONE?\"" } - if { [catch { expr wide($clockval) } result] } { + if { [catch { expr {wide($clockval)} } result] } { return -code error $result } |