diff options
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index d3b021aa..3e9db766 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -1011,6 +1011,11 @@ void tox_callback_file_recv_control(Tox *tox, tox_file_recv_control_cb *function | |||
1011 | bool tox_file_get_file_id(const Tox *tox, uint32_t friend_number, uint32_t file_number, uint8_t *file_id, | 1011 | bool tox_file_get_file_id(const Tox *tox, uint32_t friend_number, uint32_t file_number, uint8_t *file_id, |
1012 | TOX_ERR_FILE_GET *error) | 1012 | TOX_ERR_FILE_GET *error) |
1013 | { | 1013 | { |
1014 | if (!file_id) { | ||
1015 | SET_ERROR_PARAMETER(error, TOX_ERR_FILE_GET_NULL); | ||
1016 | return 0; | ||
1017 | } | ||
1018 | |||
1014 | const Messenger *m = tox; | 1019 | const Messenger *m = tox; |
1015 | int ret = file_get_id(m, friend_number, file_number, file_id); | 1020 | int ret = file_get_id(m, friend_number, file_number, file_id); |
1016 | 1021 | ||