Skip to content
Permalink
Browse files

clock: fix copy/paste error which caused use-after-free

(squashed 7099408 + 3b9119b for 1.20 branch)
  • Loading branch information...
monsta committed Apr 28, 2018
1 parent a7dcec2 commit 9ff939b5d521f971bee5453a33dce59ca6d7a3f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ("");

0 comments on commit 9ff939b

Please sign in to comment.
You can’t perform that action at this time.