diff options
-rw-r--r-- | src/til_settings.c | 1 | ||||
-rw-r--r-- | src/til_settings.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/til_settings.c b/src/til_settings.c index 0c2eff1..a1466d9 100644 --- a/src/til_settings.c +++ b/src/til_settings.c @@ -53,6 +53,7 @@ static int add_value(til_settings_t *settings, const char *key, const char *valu settings->settings[settings->num - 1]->key = key; settings->settings[settings->num - 1]->value = value; settings->settings[settings->num - 1]->desc = desc; + settings->settings[settings->num - 1]->user_data = NULL; return 0; } diff --git a/src/til_settings.h b/src/til_settings.h index 2896405..cbff2a7 100644 --- a/src/til_settings.h +++ b/src/til_settings.h @@ -29,6 +29,7 @@ struct til_setting_t { const char *key; const char *value; const til_setting_desc_t *desc; + void *user_data; }; til_settings_t * til_settings_new(const char *settings); |