aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-model.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-10-31 07:24:48 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-10-31 07:24:48 +0800
commit4d38e3f08f6f5ed5144b0817807c031b26015bb3 (patch)
treee4d5c77fcf2052260f5d8cfc139f2f0a9b3497fa /calendar/gui/calendar-model.c
parent5bb794e211a6570880a36caede9acb837c833ccf (diff)
downloadgsoc2013-evolution-4d38e3f08f6f5ed5144b0817807c031b26015bb3.tar.gz
gsoc2013-evolution-4d38e3f08f6f5ed5144b0817807c031b26015bb3.tar.zst
gsoc2013-evolution-4d38e3f08f6f5ed5144b0817807c031b26015bb3.zip
return NULL if passed NULL. Should fix bug #14048.
2001-10-30 Damon Chaplin <damon@ximian.com> * gui/calendar-model.c (dup_date_edit_value): return NULL if passed NULL. Should fix bug #14048. svn path=/trunk/; revision=14501
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r--calendar/gui/calendar-model.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index 3d62857b82..629a4f6108 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -1411,6 +1411,9 @@ dup_date_edit_value (const void *value)
{
ECellDateEditValue *dv, *orig_dv;
+ if (value == NULL);
+ return NULL;
+
orig_dv = (ECellDateEditValue*) value;
dv = g_new (ECellDateEditValue, 1);