diff --git a/src/xterm.c b/src/xterm.c index c6fa29943bf..38775c3f52e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -26050,7 +26050,8 @@ For details, see etc/PROBLEMS.\n", /* Dump the list of error handlers for debugging purposes if the list exists. */ - if (dpyinfo->failable_requests || x_error_message) + if ((dpyinfo->failable_requests + != dpyinfo->next_failable_request) || x_error_message) fprintf (stderr, "X error handlers currently installed:\n"); for (failable = dpyinfo->failable_requests;