From 9ff939b5d521f971bee5453a33dce59ca6d7a3f9 Mon Sep 17 00:00:00 2001 From: monsta Date: Sat, 28 Apr 2018 15:38:24 +0300 Subject: clock: fix copy/paste error which caused use-after-free (squashed 7099408402dc41f39e32f4afa3e874e968e879bc + 3b9119b3bb941de61654d45eb693a85f48d56289 for 1.20 branch) --- applets/clock/clock-location-tile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c index a4546f71..03717403 100644 --- a/applets/clock/clock-location-tile.c +++ b/applets/clock/clock-location-tile.c @@ -615,7 +615,7 @@ weather_info_setup_tooltip (WeatherInfo *info, ClockLocation *location, GtkToolt g_free (apparent); wind = weather_info_get_wind (info); - if (strcmp (apparent, dgettext ("mate-applets-2.0", "Unknown")) != 0) + if (strcmp (wind, dgettext ("mate-applets-2.0", "Unknown")) != 0) line3 = g_strdup_printf ("%s\n", wind); else line3 = g_strdup (""); -- cgit v1.2.1