Skip to content

Commit 9ff939b

Browse files
committed
clock: fix copy/paste error which caused use-after-free
(squashed 7099408 + 3b9119b for 1.20 branch)
1 parent a7dcec2 commit 9ff939b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applets/clock/clock-location-tile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ weather_info_setup_tooltip (WeatherInfo *info, ClockLocation *location, GtkToolt
615615
g_free (apparent);
616616

617617
wind = weather_info_get_wind (info);
618-
if (strcmp (apparent, dgettext ("mate-applets-2.0", "Unknown")) != 0)
618+
if (strcmp (wind, dgettext ("mate-applets-2.0", "Unknown")) != 0)
619619
line3 = g_strdup_printf ("%s\n", wind);
620620
else
621621
line3 = g_strdup ("");

0 commit comments

Comments
 (0)