talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 84ce49b634b869e01a5ee084e4cd8efc8bda0c72
parent 399a77d8813bedb483b3ca9238d455a9dc82b7f9
Author: wwp <subscript@free.fr>
Date:   Thu, 30 Sep 2021 12:41:39 +0200

Fix CID 1491170: logically dead code.

Diffstat:
Msrc/oauth2.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/oauth2.c b/src/oauth2.c @@ -198,9 +198,9 @@ static gchar* oauth2_get_token_from_response(Oauth2Service provider, const gchar token = g_strdup(response); } else { gchar* start = g_strstr_len(response, strlen(response), OAUTH2CodeMarker[provider][0]); - start += strlen(OAUTH2CodeMarker[provider][0]); if (start == NULL) return NULL; + start += strlen(OAUTH2CodeMarker[provider][0]); gchar* stop = g_strstr_len(response, strlen(response), OAUTH2CodeMarker[provider][1]); if (stop == NULL) return NULL;