talons

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

commit 72872323034e04b9568aab8f0b85f769a847cdff
parent ce587ea1692033ed418e30ca2ce3e1de29af92f3
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 @@ -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 */ }