Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3715911
D349.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
411 B
Referenced Files
None
Subscribers
None
D349.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 10:59 (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231679
Default Alt Text
D349.diff (411 B)
Attached To
Mode
D349: Correct behavior for `registry incr`
Attached
Detach File
Event Timeline
Log In to Comment