talons

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

commit f75522e9863a84b235229bd35708ee88b0276243
parent a102ba8a33d274aac3ebba966007c646fb14a8a1
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;