diff options
author | JP Rosevear <jpr@ximian.com> | 2004-04-22 11:51:14 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-04-22 11:51:14 +0800 |
commit | 3a33b10b205b720d777111ace622e77ef63901b3 (patch) | |
tree | 1adfb73c07adc89ec34b25b639ded30ac23950bd /calendar/gui/calendar-component.c | |
parent | 9e08fd4d208933cea4e98bba0f155be1583ddfdc (diff) | |
download | gsoc2013-evolution-3a33b10b205b720d777111ace622e77ef63901b3.tar.gz gsoc2013-evolution-3a33b10b205b720d777111ace622e77ef63901b3.tar.zst gsoc2013-evolution-3a33b10b205b720d777111ace622e77ef63901b3.zip |
make sure we don't deref a NULL pointer
2004-04-21 JP Rosevear <jpr@ximian.com>
* gui/calendar-component.c (create_new_event): make sure we don't
deref a NULL pointer
svn path=/trunk/; revision=25573
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r-- | calendar/gui/calendar-component.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 7e04ac4a95..e7b4830b94 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -839,7 +839,7 @@ create_new_event (CalendarComponent *calendar_component, CalendarComponentView * return TRUE; } - if (component_view->calendar && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (component_view->calendar)))) { + if (component_view && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (component_view->calendar)))) { GnomeCalendarViewType view_type; /* Force all for these view types because thats what's selected and it mimics a double click */ |