aboutsummaryrefslogtreecommitdiffstats
path: root/examples/c/example2.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2015-07-08 23:43:03 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2015-07-08 23:43:03 +0100
commit0baf6a89ac67c7e5bbd32f71e26b807a1d50aab1 (patch)
tree3bdf7e8a93f31fee522063140d2a5dc78feb909a /examples/c/example2.c
parentf2499612c5594944d3e0891259859668d35c85b2 (diff)
downloadlibconfig-0baf6a89ac67c7e5bbd32f71e26b807a1d50aab1.tar.gz
Imported Upstream version 1.5
Diffstat (limited to '')
-rw-r--r--examples/c/example2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/c/example2.c b/examples/c/example2.c
index f1886b9..076a8fa 100644
--- a/examples/c/example2.c
+++ b/examples/c/example2.c
@@ -74,6 +74,8 @@ int main(int argc, char **argv)
setting = config_setting_add(movie, "qty", CONFIG_TYPE_INT);
config_setting_set_float(setting, 20);
+ config_set_options(&cfg, 0);
+
/* Write out the updated configuration. */
if(! config_write_file(&cfg, output_file))
{