From 7745aa34ad3fd114a0e3d0f89eef145c4736c5f3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 31 May 2019 20:40:13 +0200 Subject: config: fix resolve of device type --- src/config-process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config-process.c b/src/config-process.c index a0671cb..c1634d5 100644 --- a/src/config-process.c +++ b/src/config-process.c @@ -22,7 +22,7 @@ static device_t * config_process_device(const char *name, struct json_object *ob const char *typename = NULL; struct json_object *device = neco_json_get_value(obj, "device", json_type_object); if (device) - typename = neco_json_get_string(obj, "type"); + typename = neco_json_get_string(device, "type"); const device_type_t *type = get_device_type(typename ?: "interface"); if (!type) -- cgit v1.2.3