[Commits] [SCM] claws branch, gtk2, updated. 3.19.0-37-g33a665492

mones at claws-mail.org mones at claws-mail.org
Thu May 26 19:01:40 UTC 2022


The branch, gtk2 has been updated
       via  33a665492f877b43b194529d74bd44d3e824d343 (commit)
      from  424471a2f1e403cd7d8d6140456639eb107e9f26 (commit)

Summary of changes:
 src/prefs_account.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 33a665492f877b43b194529d74bd44d3e824d343
Author: Ricardo Mones <ricardo at mones.org>
Date:   Thu May 26 21:00:23 2022 +0200

    Backport 98d87a84cf8dab0c8bdd30e33779f59f7b1dc5a7 from master

diff --git a/src/prefs_account.c b/src/prefs_account.c
index 21f691dec..3f353c5c9 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -5156,16 +5156,17 @@ static void prefs_account_oauth2_copy_url(GtkButton *button, gpointer data)
 	url = g_malloc(OAUTH2BUFSIZE+1);
 	Oauth2Service service;
 	const gchar * custom_client_id = NULL;
-	
+	int ret;
+
 	service = combobox_get_active_data(GTK_COMBO_BOX(optmenu));
-	
+
 	custom_client_id = gtk_entry_get_text ((GtkEntry *)oauth2_page.oauth2_client_id_entry);
-	
+
 	oauth2_authorisation_url(service, &url, custom_client_id);
-	
+
 	win = gtk_widget_get_toplevel (optmenu);
 	len = strlen(url);
-       
+
 	clip = gtk_widget_get_clipboard (win, GDK_SELECTION_PRIMARY);
 	clip2 = gtk_widget_get_clipboard (win, GDK_SELECTION_CLIPBOARD);
 	gtk_clipboard_set_text (clip, url, len);
@@ -5189,8 +5190,9 @@ static void prefs_account_oauth2_copy_url(GtkButton *button, gpointer data)
 	}
 	debug_print("Starting oauth2 listener thread\n");
 	oauth2_listener_cancel = 0;
-	int ret = pthread_create(&oauth2_listener_tid, NULL, prefs_account_oauth2_listener, NULL);
-        cm_return_if_fail(ret != 0);
+	ret = pthread_create(&oauth2_listener_tid, NULL, prefs_account_oauth2_listener, NULL);
+	if (ret != 0)
+		g_warning("can't create thread: %d", ret);
 }
 
 static void prefs_account_oauth2_obtain_tokens(GtkButton *button, gpointer data)

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list