# HG changeset patch # User Jim Blandy # Date 715605453 0 # Node ID d6ee6ff7562d42ad25b52bb8d8568103de1eca87 # Parent 8a936037cedc4d132d294e1673634d83c9e7d174 * xterm.c (x_catch_errors): Don't forget to initialize x_caught_error_message to the null string, so x_check_errors can tell when an error has occurred. diff -r 8a936037cedc -r d6ee6ff7562d src/xterm.c --- a/src/xterm.c Fri Sep 04 07:35:10 1992 +0000 +++ b/src/xterm.c Fri Sep 04 11:17:33 1992 +0000 @@ -2881,6 +2881,7 @@ /* 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);