aboutsummaryrefslogtreecommitdiff
path: root/src/compose.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compose.c')
-rw-r--r--src/compose.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compose.c b/src/compose.c
index b0b32bb4..34e3a1f1 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -5703,6 +5703,13 @@ static void compose_exec_ext_editor(Compose *compose)
g_free(tmp);
return;
}
+ if (pid == 0) {
+ g_warning("Couldn't get PID of external editor\n");
+ g_strfreev(cmdline);
+ g_unlink(tmp);
+ g_free(tmp);
+ return;
+ }
g_strfreev(cmdline);