Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-18 16:38:27 +0400
committerFelix Fietkau <nbd@openwrt.org>2012-12-18 16:38:27 +0400
commit4d0a00c82c77a9395c992841237e2c06c4606a5e (patch)
treeb596016f88c6827440abc2c47bdd0633117a9b90 /sh
parent0505bf5f424cb5ba607c06cd821c1593fd7a2bef (diff)
jshn: fix check to reset array sequence counters on cleanup
Diffstat (limited to 'sh')
-rw-r--r--sh/jshn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index 39d5331..70c3aa3 100644
--- 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