Page MenuHomeDevCentral

D349.id824.diff
No OneTemporary

D349.id824.diff

diff --git a/Core.tcl b/Core.tcl
--- a/Core.tcl
+++ b/Core.tcl
@@ -226,8 +226,15 @@
}
"incr" {
+ if {$value == ""} {
+ set term 1
+ } elseif {[string is integer $value]} {
+ set term $value
+ } {
+ error "The increment term must be an integer."
+ }
+
set current [registry get $key]
- if {$value == ""} {set term 1}
if {$current == ""} {
registry set $key $term
} {

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 19:49 (20 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2372499
Default Alt Text
D349.id824.diff (411 B)

Event Timeline