Skip to content

Commit

Permalink
Fix bug with libconfig < 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Apr 12, 2011
1 parent ac07a6b commit 6b1b02d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extras.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ config_export (config_setting_t* setting, config_t* config)

memset(config, 0, sizeof(*config));

config->root = setting;
config->root = setting;

#if LIBCONFIG_VER_MAJOR >= 1 && LIBCONFIG_VER_MINOR >= 4
config->tab_width = 2;
#endif

return CONFIG_TRUE;
}
Expand Down

0 comments on commit 6b1b02d

Please sign in to comment.