From a8b79a08d61159b770c16f557673e93a29ebfeab Mon Sep 17 00:00:00 2001 From: Wang Xin Date: Tue, 4 Dec 2007 04:50:10 +0000 Subject: Fixes #501182. 2008-12-04 Wang Xin Fixes #501182. * gui/gnome-cal.c: (update_todo_view): Handle NULL pointer. svn path=/trunk/; revision=34631 --- calendar/gui/gnome-cal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 768ed6e89b..bd6c8e710a 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1248,7 +1248,8 @@ update_todo_view (GnomeCalendar *gcal) model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->todo)); if ((sexp = calendar_config_get_hide_completed_tasks_sexp (FALSE)) != NULL) { - priv->todo_sexp = g_strdup_printf ("(and %s %s)", sexp, priv->sexp); + priv->todo_sexp = g_strdup_printf ("(and %s %s)", sexp, + priv->sexp ? priv->sexp : ""); e_cal_model_set_search_query (model, priv->todo_sexp); g_free (sexp); } else { -- cgit