talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 48b2af2c113c24f2b931c6edecdfd053832ce31e
parent 67d3d844e4e8e7794e13283f89416b0e412684d2
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date:   Sat, 20 Nov 2021 23:07:45 -0700

Fix -Wmaybe-uninitialized warning on Windows

Diffstat:
Msrc/compose.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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 */ }