summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-24 01:09:23 +0100
committerFelix Fietkau <nbd@openwrt.org>2015-01-24 01:10:33 +0100
commit0ccad2d1721770ca3d8814bd9aa66cdc4f61b982 (patch)
treee783cd532ee9300b5c114b45dfb369fb9dfaedc2 /config.c
parent8dd2eedafccc9f898d391b93a59efb1412c5b5e9 (diff)
device: simplify config blob memory allocation handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 7319b3c..43b9205 100644
--- a/config.c
+++ b/config.c
@@ -217,7 +217,7 @@ config_init_devices(void)
if (!dev)
continue;
- device_apply_config(dev, dev->type, blob_memdup(b.head));
+ device_apply_config(dev, dev->type, b.head);
}
dev->default_config = false;
}