From 2fc628754431097a6c93c01d4f17cd51897ee4e7 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.18 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 8620bb4b..5e869069 100644 --- a/applets/clock/clock-location-tile.c +++ b/applets/clock/clock-location-tile.c @@ -623,7 +623,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