* xterm.c (x_catch_errors): Don't forget to initialize
authorJim Blandy <jimb@redhat.com>
Fri, 4 Sep 1992 11:17:33 +0000 (11:17 +0000)
committerJim Blandy <jimb@redhat.com>
Fri, 4 Sep 1992 11:17:33 +0000 (11:17 +0000)
x_caught_error_message to the null string, so x_check_errors can
tell when an error has occurred.

src/xterm.c

index abedef3..25c6351 100644 (file)
@@ -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);