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/ChangeLog | 5 +++++ calendar/gui/e-cal-model.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ce0a44b20e..5908cd9249 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +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. + 2004-03-09 Kidd Wang * gui/e-day-view.c: (e_day_view_finish_long_event_resize): add a call 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