summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-26 18:16:08 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-26 18:16:08 +0000
commitbdfc248155c9bcea60068c73a7afacc792f7c439 (patch)
tree1e24ae032e8ce23c0ac3bc97346034688b4bf98c /src/xterm.c
parent135906888e893230ca456cd4c7e75f18a2659def (diff)
downloademacs-bdfc248155c9bcea60068c73a7afacc792f7c439.tar.gz
(XTread_socket, Xatom_wm_save_yourself clause):
Don't call XSetCommand if f is 0.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 35fa4cf4241..977e1b8020f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3354,7 +3354,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
XSetCommand (FRAME_X_DISPLAY (f),
event.xclient.window,
initial_argv, initial_argc);
- else
+ else if (f)
XSetCommand (FRAME_X_DISPLAY (f),
event.xclient.window,
0, 0);