From a00e0f311f942d790b45c279517eb5ce19d354f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Sat, 11 Oct 2014 12:47:43 +0200 Subject: [PATCH] Fixed twc_friend_request_add return value. --- src/twc-friend-request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twc-friend-request.c b/src/twc-friend-request.c index 82c33ca..aa8780d 100644 --- a/src/twc-friend-request.c +++ b/src/twc-friend-request.c @@ -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;