summaryrefslogtreecommitdiff
path: root/examples/read_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r--examples/read_conf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c
index be1f97a..acc3eba 100644
--- a/examples/read_conf.c
+++ b/examples/read_conf.c
@@ -6,8 +6,9 @@
int main(int argc, char **argv) {
pom_error *error;
- //pom_set_error_language("fr");
- pom_conf *conf = pom_load_path(argc >= 2 ? argv[1] : "conf.pom", &error);
+ pom_settings settings = {0};
+ strcpy(settings.error_lang, "fr");
+ pom_conf *conf = pom_load_path(&settings, argc >= 2 ? argv[1] : "conf.pom", &error);
if (!conf) {
pom_error_print(error);
free(error);