diff options
Diffstat (limited to 'protocols/Tox/libtox/src/toxcore/tox_dispatch.c')
-rw-r--r-- | protocols/Tox/libtox/src/toxcore/tox_dispatch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/libtox/src/toxcore/tox_dispatch.c b/protocols/Tox/libtox/src/toxcore/tox_dispatch.c index 4b4546e4a4..5427851470 100644 --- a/protocols/Tox/libtox/src/toxcore/tox_dispatch.c +++ b/protocols/Tox/libtox/src/toxcore/tox_dispatch.c @@ -47,9 +47,11 @@ Tox_Dispatch *tox_dispatch_new(Tox_Err_Dispatch_New *error) *dispatch = (Tox_Dispatch) { nullptr }; + if (error != nullptr) { *error = TOX_ERR_DISPATCH_NEW_OK; } + return dispatch; } |