comparison src/xterm.c @ 1077:d6ee6ff7562d

* 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.
author Jim Blandy <jimb@redhat.com>
date Fri, 04 Sep 1992 11:17:33 +0000
parents b8defcaf1b61
children cd3d59155bf7
comparison
equal deleted inserted replaced
1076:8a936037cedc 1077:d6ee6ff7562d
2879 XSync (x_current_display, False); 2879 XSync (x_current_display, False);
2880 2880
2881 /* Set up the error buffer. */ 2881 /* Set up the error buffer. */
2882 x_caught_error_message = 2882 x_caught_error_message =
2883 (char (*)[]) xmalloc (sizeof (*x_caught_error_message)); 2883 (char (*)[]) xmalloc (sizeof (*x_caught_error_message));
2884 (*x_caught_error_message)[0] = '\0';
2884 2885
2885 /* Install our little error handler. */ 2886 /* Install our little error handler. */
2886 XHandleError (x_error_catcher); 2887 XHandleError (x_error_catcher);
2887 } 2888 }
2888 2889