diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2019-05-31 20:40:13 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2019-05-31 20:40:13 +0200 |
commit | 7745aa34ad3fd114a0e3d0f89eef145c4736c5f3 (patch) | |
tree | 14be114889a807d22396bb2f38b08db1a7970fe7 /src | |
parent | bcef77a7fb3b73d2a2fbcea51012014b62755bb5 (diff) | |
download | neco-7745aa34ad3fd114a0e3d0f89eef145c4736c5f3.tar neco-7745aa34ad3fd114a0e3d0f89eef145c4736c5f3.zip |
config: fix resolve of device type
Diffstat (limited to 'src')
-rw-r--r-- | src/config-process.c | 2 |
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) |