projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0505bf5
)
jshn: fix check to reset array sequence counters on cleanup
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 18 Dec 2012 12:38:27 +0000
(13:38 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 18 Dec 2012 12:38:27 +0000
(13:38 +0100)
sh/jshn.sh
patch
|
blob
|
history
diff --git
a/sh/jshn.sh
b/sh/jshn.sh
index 39d53318fe5d5f4901a627021f1bc30b2b91a084..70c3aa36b3f026d3f62634316927409c98b87d26 100644
(file)
--- a/
sh/jshn.sh
+++ b/
sh/jshn.sh
@@
-103,7
+103,7
@@
_json_add_table() {
local table="JSON_$itype$seq"
_json_export "UP_$table" "$cur"
_json_export "KEYS_$table" ""
- [ "$
TYPE
" = "ARRAY" ] && _json_export "SEQ_$table" ""
+ [ "$
itype
" = "ARRAY" ] && _json_export "SEQ_$table" ""
_json_stack_push "$table"
_json_get_var new_cur JSON_CUR