summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)