summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/tox.c2
1 files changed, 2 insertions, 0 deletions
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)
75 struct Tox_Options *options = calloc(sizeof(struct Tox_Options), 1); 75 struct Tox_Options *options = calloc(sizeof(struct Tox_Options), 1);
76 76
77 if (options) { 77 if (options) {
78 tox_options_default(options);
79
78 SET_ERROR_PARAMETER(error, TOX_ERR_OPTIONS_NEW_OK); 80 SET_ERROR_PARAMETER(error, TOX_ERR_OPTIONS_NEW_OK);
79 return options; 81 return options;
80 } 82 }