aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ini.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ini.c b/src/ini.c
index efc94e5..37d80fe 100644
--- a/src/ini.c
+++ b/src/ini.c
@@ -122,6 +122,14 @@ int ini_getval(struct INIFILE *ini, char *section_name, char *key, int type, uni
result->as_char_p = NULL;
return -1;
}
+
+ char *render = tpl_render(data->value);
+ if (render) {
+ guard_free(data->value);
+ data->value = render;
+ }
+ lstrip(data->value);
+
switch (type) {
case INIVAL_TYPE_CHAR:
result->as_char = (char) strtol(data->value, NULL, 10);