From 956377822c6b7eebe36889950c6f7a749e78a8d0 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 12 Mar 2004 09:23:40 +0000 Subject: return "" instead of NULL if there is no default_category set. Fixes 2004-03-12 Not Zed * gui/e-cal-model.c (ecm_initialize_value): return "" instead of NULL if there is no default_category set. Fixes #53419. svn path=/trunk/; revision=25042 --- calendar/gui/e-cal-model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 750e435767..246444986f 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -762,7 +762,7 @@ ecm_initialize_value (ETableModel *etm, int col) switch (col) { case E_CAL_MODEL_FIELD_CATEGORIES : - return g_strdup (priv->default_category); + return g_strdup (priv->default_category?priv->default_category:""); case E_CAL_MODEL_FIELD_CLASSIFICATION : case E_CAL_MODEL_FIELD_DESCRIPTION : case E_CAL_MODEL_FIELD_SUMMARY : -- cgit v1.2.3