[gnome-calendar] weather-settings: Only deserialize valid locations
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] weather-settings: Only deserialize valid locations
- Date: Sun, 28 Jan 2018 01:33:01 +0000 (UTC)
commit 9424d8f3cc17a0f111c56d062ff3adb96c3cac96
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Jan 27 23:32:21 2018 -0200
weather-settings: Only deserialize valid locations
src/weather/gcal-weather-settings.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/weather/gcal-weather-settings.c b/src/weather/gcal-weather-settings.c
index 72f39fbe..747ed6e5 100644
--- a/src/weather/gcal-weather-settings.c
+++ b/src/weather/gcal-weather-settings.c
@@ -111,7 +111,7 @@ load_weather_settings (GcalWeatherSettings *self)
GWeatherLocation *world;
world = gweather_location_get_world ();
- weather_location = gweather_location_deserialize (world, location);
+ weather_location = location ? gweather_location_deserialize (world, location) : NULL;
gweather_location_entry_set_location (GWEATHER_LOCATION_ENTRY (self->weather_location_entry),
weather_location);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]