diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-12-23 11:43:33 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-12-23 11:43:33 +0800 |
commit | 4f689a3f228d7c5575e95825c88f4afa99646c62 (patch) | |
tree | 5bb4520dd0f0abfc2e1fed079cad55ebd2e5bfc5 /calendar/pcs | |
parent | bf39da80e51a03ff8f6eb712d18a97d98d67e116 (diff) | |
download | gsoc2013-evolution-4f689a3f228d7c5575e95825c88f4afa99646c62.tar gsoc2013-evolution-4f689a3f228d7c5575e95825c88f4afa99646c62.tar.gz gsoc2013-evolution-4f689a3f228d7c5575e95825c88f4afa99646c62.tar.bz2 gsoc2013-evolution-4f689a3f228d7c5575e95825c88f4afa99646c62.tar.lz gsoc2013-evolution-4f689a3f228d7c5575e95825c88f4afa99646c62.tar.xz gsoc2013-evolution-4f689a3f228d7c5575e95825c88f4afa99646c62.tar.zst gsoc2013-evolution-4f689a3f228d7c5575e95825c88f4afa99646c62.zip |
account for the case where there are no alarms, fixes crash
2000-12-22 JP Rosevear <jpr@helixcode.com>
* pcs/cal-backend-file.c (cal_backend_file_get_alarms_for_object):
account for the case where there are no alarms, fixes crash
svn path=/trunk/; revision=7134
Diffstat (limited to 'calendar/pcs')
-rw-r--r-- | calendar/pcs/cal-backend-file.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index 4de8c8a4a2..168067f41e 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -1290,8 +1290,12 @@ cal_backend_file_get_alarms_for_object (CalBackend *backend, const char *uid, g_free (comp_str); alarms = generate_alarms_for_comp (comp, start, end); - fill_alarm_instances_seq (&corba_alarms->alarms, alarms->alarms); - cal_component_alarms_free (alarms); + if (alarms) { + fill_alarm_instances_seq (&corba_alarms->alarms, alarms->alarms); + cal_component_alarms_free (alarms); + } else { + fill_alarm_instances_seq (&corba_alarms->alarms, NULL); + } return corba_alarms; } |