aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index f96db302781..f834f359ec5 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -683,7 +683,9 @@ void
683clear_glyph_matrix_rows (struct glyph_matrix *matrix, int start, int end) 683clear_glyph_matrix_rows (struct glyph_matrix *matrix, int start, int end)
684{ 684{
685 eassert (start <= end); 685 eassert (start <= end);
686 eassert (start >= 0 && start <= matrix->nrows); 686 eassert (start >= 0 && (start < matrix->nrows
687 /* matrix->nrows can be 0 for the initial frame. */
688 || (matrix->nrows == 0)));
687 eassert (end >= 0 && end <= matrix->nrows); 689 eassert (end >= 0 && end <= matrix->nrows);
688 690
689 for (; start < end; ++start) 691 for (; start < end; ++start)