summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImpyy <impyy@tox.im>2015-03-15 12:47:59 +0100
committerImpyy <impyy@tox.im>2015-03-15 12:47:59 +0100
commit409897f7aeb9d3c710aed4466f75eb058842a343 (patch)
tree23bdb585c8c052ff1bbf2cba407a539660fe8ff4
parent518a399eb0cb0ffdc6798ab7bab1d4b1c973ef2e (diff)
Initialize Tox_Options with default values in tox_options_new
-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 }