aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/confparser.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/confparser.c b/src/confparser.c
index f6ea3a0..8547867 100644
--- a/src/confparser.c
+++ b/src/confparser.c
@@ -90,6 +90,15 @@ int config_file_parse(Conf *conf, UserOpt *opt) {
return -1;
}
}
+ /* Could add an optional row that would make the config var
+ * optional. */
+#define X(var, str, name) \
+ if (!conf->var) { \
+ ERR("Missing %s", name); \
+ return -1; \
+ }
+ CONFIG_VARIABLES_TABLE
+#undef X
return 0;
}