diff options
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index b793bd8c..36f87cc6 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -910,7 +910,7 @@ bool tox_file_get_file_id(const Tox *tox, uint32_t friend_number, uint32_t file_ | |||
910 | uint32_t tox_file_send(Tox *tox, uint32_t friend_number, uint32_t kind, uint64_t file_size, const uint8_t *file_id, | 910 | uint32_t tox_file_send(Tox *tox, uint32_t friend_number, uint32_t kind, uint64_t file_size, const uint8_t *file_id, |
911 | const uint8_t *filename, size_t filename_length, TOX_ERR_FILE_SEND *error) | 911 | const uint8_t *filename, size_t filename_length, TOX_ERR_FILE_SEND *error) |
912 | { | 912 | { |
913 | if (!filename) { | 913 | if (filename_length && !filename) { |
914 | SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEND_NULL); | 914 | SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEND_NULL); |
915 | return UINT32_MAX; | 915 | return UINT32_MAX; |
916 | } | 916 | } |