[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-278-g84ce49b63

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


The branch, gtk3 has been updated
       via  84ce49b634b869e01a5ee084e4cd8efc8bda0c72 (commit)
      from  399a77d8813bedb483b3ca9238d455a9dc82b7f9 (commit)

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


- Log -----------------------------------------------------------------
commit 84ce49b634b869e01a5ee084e4cd8efc8bda0c72
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