nak, this cleanup will make the code run slower at no notable feature improvement
John On 02/06/2014 03:17, Zhao, Gang wrote: > No logical change, just let the code more readable. > > Signed-off-by: Zhao, Gang <gamer...@gmail.com> --- 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() { > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel