diff --git a/toxcore/tox.c b/toxcore/tox.c index 5493d1d5..6861ca4f 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -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; }