summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2019-05-31 20:40:13 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2019-05-31 20:40:13 +0200
commit7745aa34ad3fd114a0e3d0f89eef145c4736c5f3 (patch)
tree14be114889a807d22396bb2f38b08db1a7970fe7 /src
parentbcef77a7fb3b73d2a2fbcea51012014b62755bb5 (diff)
downloadneco-7745aa34ad3fd114a0e3d0f89eef145c4736c5f3.tar
neco-7745aa34ad3fd114a0e3d0f89eef145c4736c5f3.zip
config: fix resolve of device type
Diffstat (limited to 'src')
-rw-r--r--src/config-process.c2
1 files changed, 1 insertions, 1 deletions
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)