From d121da85312a2df9652c1e81f77fc63595591237 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 16 Apr 2006 05:01:46 +0000 Subject: [PATCH] Avoid a possible array overrun. (Coverity) 2006-04-16 Matthias Clasen * gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a possible array overrun. (Coverity) --- gtk/gtkcalendar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 1e88480fdc..724697fe24 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -2832,12 +2832,12 @@ gtk_calendar_key_press (GtkWidget *widget, case GDK_space: row = calendar->focus_row; col = calendar->focus_col; - day = calendar->day[row][col]; if (row > -1 && col > -1) { return_val = TRUE; + day = calendar->day[row][col]; if (calendar->day_month[row][col] == MONTH_PREV) calendar_set_month_prev (calendar); else if (calendar->day_month[row][col] == MONTH_NEXT)