Avoid division by zero crash observed by Yuan MEI.
commit40014fe9fd59b3332b3bec20c6973ef324192b7a
authorMartin Rudalics <rudalics@gmx.at>
Fri, 6 Nov 2015 11:15:18 +0000 (6 12:15 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 6 Nov 2015 11:15:18 +0000 (6 12:15 +0100)
treef59f0e5ca65b18095f1d6f87d026fd63f1fd64f4
parent29c360ee1cb0ba68470d831739d4df33016fada1
Avoid division by zero crash observed by Yuan MEI.

See http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg00194.html.

* src/dispnew.c (required_matrix_height, required_matrix_width):
Avoid division by zero.
* src/xterm.c (x_term_init): Init dpyinfo->smallest_font_height and
dpyinfo->smallest_char_width to 1.
src/dispnew.c
src/xterm.c