diff options
author | Damon Chaplin <damon@ximian.com> | 2001-10-31 07:24:48 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-10-31 07:24:48 +0800 |
commit | 4d38e3f08f6f5ed5144b0817807c031b26015bb3 (patch) | |
tree | e4d5c77fcf2052260f5d8cfc139f2f0a9b3497fa | |
parent | 5bb794e211a6570880a36caede9acb837c833ccf (diff) | |
download | gsoc2013-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
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/calendar-model.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index c964be13ee..a78c5ffadf 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +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. + 2001-10-30 Federico Mena Quintero <federico@ximian.com> * gui/calendar-config.c (config_read): Do not ignore the 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); |