From: Luka Perkov Date: Thu, 29 May 2014 10:57:35 +0000 (+0200) Subject: uci: rework variable usage X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=commitdiff_plain;h=7c789622a6cc7e295db3f452a2b1e7b955f427aa uci: rework variable usage Signed-off-by: Luka Perkov --- diff --git a/uci.c b/uci.c index ef255a8..acbbfd8 100644 --- a/uci.c +++ b/uci.c @@ -1236,11 +1236,8 @@ static int rpc_uci_apply_config(struct ubus_context *ctx, char *config) { struct uci_package *p = NULL; - struct uci_ptr ptr = { 0 }; - - ptr.package = config; - if (!uci_load(cursor, ptr.package, &p)) { + if (!uci_load(cursor, config, &p)) { uci_commit(cursor, &p, false); uci_unload(cursor, p); }