projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ade5d4
)
fix incomplete lookups for uci.get()
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 27 Aug 2008 14:43:40 +0000
(16:43 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 27 Aug 2008 14:43:40 +0000
(16:43 +0200)
lua/uci.c
patch
|
blob
|
history
diff --git
a/lua/uci.c
b/lua/uci.c
index f87ce271adf5982cecc223285defbf5e1e5d8b41..7f4ba992e3cdf6cc3f2d45b1781049fb6e3d2f72 100644
(file)
--- a/
lua/uci.c
+++ b/
lua/uci.c
@@
-296,6
+296,10
@@
uci_lua_get_any(lua_State *L, bool all)
err = UCI_ERR_INVAL;
goto error;
}
+ if (!(ptr.flags & UCI_LOOKUP_COMPLETE)) {
+ err = UCI_ERR_NOTFOUND;
+ goto error;
+ }
err = UCI_OK;
e = ptr.last;