aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-05-28 08:58:39 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-05-28 08:58:39 +0000
commit5343440c3b3703454cbb825f47f7f407c939521c (patch)
treef6ed9d6ac46f0470e4cd0a8b1459cd1b280ff2ba /src
parent51fcff7611d3181ccab788b7168e3722ae0f44be (diff)
fixed infinite loop when pid was not obtained on the execution of external editor.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1742 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-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);