From 4d38e3f08f6f5ed5144b0817807c031b26015bb3 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Tue, 30 Oct 2001 23:24:48 +0000 Subject: return NULL if passed NULL. Should fix bug #14048. 2001-10-30 Damon Chaplin * gui/calendar-model.c (dup_date_edit_value): return NULL if passed NULL. Should fix bug #14048. svn path=/trunk/; revision=14501 --- calendar/gui/calendar-model.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui') 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); -- cgit