aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model-calendar.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-07-13 19:07:19 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-07-13 19:07:19 +0800
commite5d4f6b7d22530f4642aa98c55029398ee943b5d (patch)
tree12a0463bd5dfed339e8cde26117bf830243ea478 /calendar/gui/e-cal-model-calendar.c
parent201b027d54d5738ddb43cb65fbf639e968a99350 (diff)
downloadgsoc2013-evolution-e5d4f6b7d22530f4642aa98c55029398ee943b5d.tar
gsoc2013-evolution-e5d4f6b7d22530f4642aa98c55029398ee943b5d.tar.gz
gsoc2013-evolution-e5d4f6b7d22530f4642aa98c55029398ee943b5d.tar.bz2
gsoc2013-evolution-e5d4f6b7d22530f4642aa98c55029398ee943b5d.tar.lz
gsoc2013-evolution-e5d4f6b7d22530f4642aa98c55029398ee943b5d.tar.xz
gsoc2013-evolution-e5d4f6b7d22530f4642aa98c55029398ee943b5d.tar.zst
gsoc2013-evolution-e5d4f6b7d22530f4642aa98c55029398ee943b5d.zip
as below
2004-07-08 Radek Doulik <rodo@ximian.com> * gui/e-cal-model.c (e_cal_model_date_value_to_string): as below * gui/e-cal-model-calendar.c (ecmc_value_to_string): as below * gui/e-cal-model.c (ecm_value_to_string): as below * gui/e-cal-model-tasks.c (ecmt_value_to_string): dup the string value, it's free-ed later. instead of returning NULL return g_strdup ("") as gal does Fixes #56271 svn path=/trunk/; revision=26634
Diffstat (limited to 'calendar/gui/e-cal-model-calendar.c')
-rw-r--r--calendar/gui/e-cal-model-calendar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/e-cal-model-calendar.c b/calendar/gui/e-cal-model-calendar.c
index e6aba158da..3649352372 100644
--- a/calendar/gui/e-cal-model-calendar.c
+++ b/calendar/gui/e-cal-model-calendar.c
@@ -463,7 +463,7 @@ ecmc_value_is_empty (ETableModel *etm, int col, const void *value)
static char *
ecmc_value_to_string (ETableModel *etm, int col, const void *value)
{
- g_return_val_if_fail (col >= 0 && col < E_CAL_MODEL_CALENDAR_FIELD_LAST, NULL);
+ g_return_val_if_fail (col >= 0 && col < E_CAL_MODEL_CALENDAR_FIELD_LAST, g_strdup (""));
if (col < E_CAL_MODEL_FIELD_LAST)
return E_TABLE_MODEL_CLASS (parent_class)->value_to_string (etm, col, value);
@@ -476,7 +476,7 @@ ecmc_value_to_string (ETableModel *etm, int col, const void *value)
return g_strdup (value);
}
- return NULL;
+ return g_strdup ("");
}
/* ECalModel class methods */