summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.c b/config.c
index 9874166..36a36db 100644
--- a/config.c
+++ b/config.c
@@ -6,6 +6,7 @@
#include "tern.h"
#include "util.h"
#include "paths.h"
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -334,6 +335,6 @@ tern_node *get_systems_config(void)
tern_node *get_model(tern_node *config, system_type stype)
{
- char *model = tern_find_path_default(config, "system\0model\0", (tern_val){.ptrval = "md1va3"}, TVAL_PTR);
+ char *model = tern_find_path_default(config, "system\0model\0", (tern_val){.ptrval = "md1va3"}, TVAL_PTR).ptrval;
return tern_find_node(get_systems_config(), model);
}