summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luci2/src/rpcd/luci2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/luci2/src/rpcd/luci2.c b/luci2/src/rpcd/luci2.c
index c8ef9bf..7c37144 100644
--- a/luci2/src/rpcd/luci2.c
+++ b/luci2/src/rpcd/luci2.c
@@ -217,7 +217,7 @@ rpc_luci2_system_log(struct ubus_context *ctx, struct ubus_object *obj,
int logsize = 0;
const char *logfile = NULL;
struct stat st;
- struct uci_package *p;
+ struct uci_package *p = NULL;
struct uci_element *e;
struct uci_section *s;
struct uci_ptr ptr = { .package = "system" };
@@ -1235,7 +1235,7 @@ static FILE *
dnsmasq_leasefile(void)
{
FILE *leases = NULL;
- struct uci_package *p;
+ struct uci_package *p = NULL;
struct uci_element *e;
struct uci_section *s;
struct uci_ptr ptr = {