[Commits] [SCM] claws branch, master, updated. 3.18.0-319-g48b2af2c1

jonathan at claws-mail.org jonathan at claws-mail.org
Fri Dec 31 19:17:34 UTC 2021


The branch, master has been updated
       via  48b2af2c113c24f2b931c6edecdfd053832ce31e (commit)
      from  67d3d844e4e8e7794e13283f89416b0e412684d2 (commit)

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


- Log -----------------------------------------------------------------
commit 48b2af2c113c24f2b931c6edecdfd053832ce31e
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 3882fc56f..0fa1df979 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -9665,7 +9665,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(),
@@ -9700,6 +9700,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