libgweather r485 - in trunk: . libgweather
- From: danw svn gnome org
- To: svn-commits-list gnome org
- Subject: libgweather r485 - in trunk: . libgweather
- Date: Fri, 17 Oct 2008 14:21:45 +0000 (UTC)
Author: danw
Date: Fri Oct 17 14:21:45 2008
New Revision: 485
URL: http://svn.gnome.org/viewvc/libgweather?rev=485&view=rev
Log:
* libgweather/gweather-timezone.c (gweather_timezones_parse_xml):
don't return NULL (and cause a crash) if a timezone name is
unrecognized; just ignore that timezone. Part of #553838.
Modified:
trunk/ChangeLog
trunk/libgweather/gweather-timezone.c
Modified: trunk/libgweather/gweather-timezone.c
==============================================================================
--- trunk/libgweather/gweather-timezone.c (original)
+++ trunk/libgweather/gweather-timezone.c Fri Oct 17 14:21:45 2008
@@ -215,9 +215,8 @@
if (!strcmp (tagname, "timezone")) {
zone = parse_timezone (parser);
- if (!zone)
- goto error_out;
- g_ptr_array_add (zones, zone);
+ if (zone)
+ g_ptr_array_add (zones, zone);
}
if (xmlTextReaderNext (parser->xml) != 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]