No logical change, just let the code more readable.
Signed-off-by: Zhao, Gang <[email protected]>
---
This is for git://git.openwrt.org/project/libubox.git
sh/jshn.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sh/jshn.sh b/sh/jshn.sh
index 06ba965..baea4ed 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -88,10 +88,11 @@ _json_add_table() {
}
_json_close_table() {
- local _s_cur
+ local cur
- _json_get_var _s_cur JSON_CUR
- _json_get_var "${JSON_PREFIX}JSON_CUR" "UP_$_s_cur"
+ _json_get_var cur JSON_CUR
+ _json_get_var cur "UP_$cur"
+ _json_set_var JSON_CUR "$cur"
}
json_set_namespace() {
--
1.9.0
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel