Fixed twc_friend_request_add return value.

This commit is contained in:
Håvard Pettersson 2014-10-11 12:47:43 +02:00
parent cceb25409e
commit a00e0f311f
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ twc_friend_request_add(struct t_twc_profile *profile,
request->message = strdup(message);
memcpy(request->tox_id, client_id, TOX_CLIENT_ID_SIZE);
int rc = twc_sqlite_add_friend_request(profile, request) == -1;
int rc = twc_sqlite_add_friend_request(profile, request);
if (rc == -1)
return -2;