summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index abedef39efc..25c63512e13 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2881,6 +2881,7 @@ x_catch_errors ()
/* Set up the error buffer. */
x_caught_error_message =
(char (*)[]) xmalloc (sizeof (*x_caught_error_message));
+ (*x_caught_error_message)[0] = '\0';
/* Install our little error handler. */
XHandleError (x_error_catcher);