Initialize Tox_Options with default values in tox_options_new

This commit is contained in:
Impyy 2015-03-15 12:47:59 +01:00
parent 518a399eb0
commit 409897f7ae

View File

@ -75,6 +75,8 @@ struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error)
struct Tox_Options *options = calloc(sizeof(struct Tox_Options), 1);
if (options) {
tox_options_default(options);
SET_ERROR_PARAMETER(error, TOX_ERR_OPTIONS_NEW_OK);
return options;
}