projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #457 from jplitza/master
[project/luci.git]
/
libs
/
luci-lib-jsonc
/
src
/
jsonc.c
diff --git
a/libs/luci-lib-jsonc/src/jsonc.c
b/libs/luci-lib-jsonc/src/jsonc.c
index
827fde8
..
971fb12
100644
(file)
--- a/
libs/luci-lib-jsonc/src/jsonc.c
+++ b/
libs/luci-lib-jsonc/src/jsonc.c
@@
-222,7
+222,7
@@
static int _lua_test_array(lua_State *L, int index)
out:
lua_pop(L, 2);
- return
0
;
+ return
-1
;
}
/* check for holes */
@@
-254,7
+254,7
@@
static struct json_object * _lua_to_json(lua_State *L, int index)
case LUA_TTABLE:
max = _lua_test_array(L, index);
- if (max > 0)
+ if (max >
=
0)
{
obj = json_object_new_array();