mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
tox_friend_get_public_key() now does nothing when public_key is NULL.
This commit is contained in:
parent
334cb9c8db
commit
eec1042695
|
@ -546,7 +546,6 @@ bool tox_friend_get_public_key(const Tox *tox, uint32_t friend_number, uint8_t *
|
|||
TOX_ERR_FRIEND_GET_PUBLIC_KEY *error)
|
||||
{
|
||||
if (!public_key) {
|
||||
SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_GET_PUBLIC_KEY_NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -948,7 +948,6 @@ uint32_t tox_friend_by_public_key(const Tox *tox, const uint8_t *public_key, TOX
|
|||
|
||||
typedef enum TOX_ERR_FRIEND_GET_PUBLIC_KEY {
|
||||
TOX_ERR_FRIEND_GET_PUBLIC_KEY_OK,
|
||||
TOX_ERR_FRIEND_GET_PUBLIC_KEY_NULL,
|
||||
/**
|
||||
* No friend with the given number exists on the friend list.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user