diff --git a/toxcore/tox.c b/toxcore/tox.c index 23d0d3e40e..71403a9c47 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -107,7 +107,7 @@ void tox_options_default(struct Tox_Options *options) struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error) { - struct Tox_Options *options = calloc(sizeof(struct Tox_Options), 1); + struct Tox_Options *options = calloc(1, sizeof(struct Tox_Options)); if (options) { tox_options_default(options);