diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/pcs/cal-backend-file.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 543c1cda0b..c5bbcfa5ee 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2002-05-20 Rodrigo Moya <rodrigo@ximian.com> + + * pcs/cal-backend-file.c (cal_backend_file_open): check the string + returned by gnome_vfs_uri_to_string, which can be empty. If so, + return an error. + 2002-05-17 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_setup_view_menus): set the view diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index cccac9a633..599c09b465 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -883,6 +883,10 @@ cal_backend_file_open (CalBackend *backend, const char *uristr, gboolean only_if | GNOME_VFS_URI_HIDE_HOST_NAME | GNOME_VFS_URI_HIDE_HOST_PORT | GNOME_VFS_URI_HIDE_TOPLEVEL_METHOD)); + if (!str_uri) { + gnome_vfs_uri_unref (uri); + return CAL_BACKEND_OPEN_ERROR; + } /* Load! */ file = fopen (str_uri, "r"); |