From 409897f7aeb9d3c710aed4466f75eb058842a343 Mon Sep 17 00:00:00 2001 From: Impyy Date: Sun, 15 Mar 2015 12:47:59 +0100 Subject: [PATCH] Initialize Tox_Options with default values in tox_options_new --- toxcore/tox.c | 2 ++ 1 file changed, 2 insertions(+) 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; }