[Commits] [SCM] claws branch, master, updated. 3.18.0-220-gf75522e98

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 30 12:42:02 CEST 2021


The branch, master has been updated
       via  f75522e9863a84b235229bd35708ee88b0276243 (commit)
      from  a102ba8a33d274aac3ebba966007c646fb14a8a1 (commit)

Summary of changes:
 src/oauth2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit f75522e9863a84b235229bd35708ee88b0276243
Author: wwp <subscript at free.fr>
Date:   Thu Sep 30 12:41:39 2021 +0200

    Fix CID 1491170: logically dead code.

diff --git a/src/oauth2.c b/src/oauth2.c
index c6641031d..87aeaf25e 100644
--- 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;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list