projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing include statement
[project/uci.git]
/
libuci.c
diff --git
a/libuci.c
b/libuci.c
index
fd8f30c
..
7805d74
100644
(file)
--- a/
libuci.c
+++ b/
libuci.c
@@
-39,6
+39,7
@@
static const char *uci_errstr[] = {
[UCI_ERR_UNKNOWN] = "Unknown error",
};
[UCI_ERR_UNKNOWN] = "Unknown error",
};
+#include "uci_internal.h"
#include "util.c"
#include "list.c"
#include "history.c"
#include "util.c"
#include "list.c"
#include "history.c"
@@
-71,6
+72,7
@@
void uci_free_context(struct uci_context *ctx)
free(ctx->savedir);
UCI_TRAP_SAVE(ctx, ignore);
free(ctx->savedir);
UCI_TRAP_SAVE(ctx, ignore);
+ ctx->internal = true;
uci_cleanup(ctx);
uci_foreach_element_safe(&ctx->root, tmp, e) {
struct uci_package *p = uci_to_package(e);
uci_cleanup(ctx);
uci_foreach_element_safe(&ctx->root, tmp, e) {
struct uci_package *p = uci_to_package(e);