[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-380-g728723230

jonathan at claws-mail.org jonathan at claws-mail.org
Mon Nov 29 08:27:23 CET 2021


The branch, gtk3 has been updated
       via  72872323034e04b9568aab8f0b85f769a847cdff (commit)
      from  ce587ea1692033ed418e30ca2ce3e1de29af92f3 (commit)

Summary of changes:
 src/compose.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 72872323034e04b9568aab8f0b85f769a847cdff
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date:   Sat Nov 20 23:07:45 2021 -0700

    Fix -Wmaybe-uninitialized warning on Windows

diff --git a/src/compose.c b/src/compose.c
index f8b5262f7..066eef152 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -9631,7 +9631,7 @@ static void compose_exec_ext_editor(Compose *compose)
 #endif /* G_OS_WIN32 */
 	GPid pid;
 	GError *error = NULL;
-	gchar *cmd;
+	gchar *cmd = NULL;
 	gchar **argv;
 
 	tmp = g_strdup_printf("%s%ctmpmsg.%p", get_tmp_dir(),
@@ -9666,6 +9666,10 @@ static void compose_exec_ext_editor(Compose *compose)
 		gtk_widget_realize(socket);
 		socket_wid = gtk_socket_get_id(GTK_SOCKET (socket));
 		compose->exteditor_socket = socket;
+#else
+		alertpanel_error(_("Socket communication with an external editor is not available on Windows."));
+		g_free(tmp);
+		return;
 #endif /* G_OS_WIN32 */
 	}
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list