aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-12 17:23:40 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-12 17:23:40 +0800
commit956377822c6b7eebe36889950c6f7a749e78a8d0 (patch)
tree09e27e4a2f324ec58fe6266cd996b474cda0ef61 /calendar/gui/e-cal-model.c
parent3ea7be06f053a56e14b9ca29005b6f76fa870ea4 (diff)
downloadgsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.gz
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.bz2
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.lz
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.xz
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.tar.zst
gsoc2013-evolution-956377822c6b7eebe36889950c6f7a749e78a8d0.zip
return "" instead of NULL if there is no default_category set. Fixes
2004-03-12 Not Zed <NotZed@Ximian.com> * 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
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r--calendar/gui/e-cal-model.c2
1 files changed, 1 insertions, 1 deletions
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 :