projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some more input validation
[project/uci.git]
/
libuci.c
diff --git
a/libuci.c
b/libuci.c
index
59e2ea9
..
5872ae4
100644
(file)
--- a/
libuci.c
+++ b/
libuci.c
@@
-56,7
+56,7
@@
struct uci_context *uci_alloc_context(void)
uci_list_init(&ctx->root);
uci_list_init(&ctx->history_path);
uci_list_init(&ctx->backends);
uci_list_init(&ctx->root);
uci_list_init(&ctx->history_path);
uci_list_init(&ctx->backends);
- ctx->flags = UCI_FLAG_STRICT;
+ ctx->flags = UCI_FLAG_STRICT
| UCI_FLAG_SAVED_HISTORY
;
ctx->confdir = (char *) uci_confdir;
ctx->savedir = (char *) uci_savedir;
ctx->confdir = (char *) uci_confdir;
ctx->savedir = (char *) uci_savedir;
@@
-137,7
+137,7
@@
void uci_perror(struct uci_context *ctx, const char *prefix)
if (!ctx)
err = UCI_ERR_INVAL;
else
if (!ctx)
err = UCI_ERR_INVAL;
else
- err = ctx->err
no
;
+ err = ctx->err;
if ((err < 0) || (err >= UCI_ERR_LAST))
err = UCI_ERR_UNKNOWN;
if ((err < 0) || (err >= UCI_ERR_LAST))
err = UCI_ERR_UNKNOWN;