Index: icaltz-util.c =================================================================== --- icaltz-util.c (revision 977) +++ icaltz-util.c (working copy) @@ -304,12 +304,16 @@ icaltzutil_fetch_timezone (const char *l icalproperty *icalprop; icaltimetype dtstart, icaltime; struct icalrecurrencetype ical_recur; + const char *basedir; - if (!zdir) - set_zone_directory (); + basedir = icaltzutil_get_zone_directory(); + if (!basedir) { + icalerror_set_errno (ICAL_FILE_ERROR); + return NULL; + } - full_path = (char *) malloc (strlen (zdir) + strlen (location) + 2); - sprintf (full_path,"%s/%s",zdir, location); + full_path = (char *) malloc (strlen (basedir) + strlen (location) + 2); + sprintf (full_path,"%s/%s",basedir, location); if ((f = fopen (full_path, "rb")) == 0) { icalerror_set_errno (ICAL_FILE_ERROR);