Skip to content

Commit

Permalink
clock: fix copy/paste error which caused use-after-free
Browse files Browse the repository at this point in the history
(squashed 7099408 + 3b9119b for 1.20 branch)
  • Loading branch information
monsta committed Apr 29, 2018
1 parent a7dcec2 commit 9ff939b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applets/clock/clock-location-tile.c
Expand Up @@ -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 ("");
Expand Down

0 comments on commit 9ff939b

Please sign in to comment.