mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Initialize Tox_Options with default values in tox_options_new
This commit is contained in:
parent
518a399eb0
commit
409897f7ae
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user