summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-04-28 15:38:24 +0300
committermonsta <[email protected]>2018-04-29 14:41:13 +0300
commit2fc628754431097a6c93c01d4f17cd51897ee4e7 (patch)
treeaacdbf374fb913bcdc65c4f2ba60028da8cca74c /applets/clock
parentdcd4db784ae6dce78ef9ec353c3aab8eb2b639cb (diff)
downloadmate-panel-2fc628754431097a6c93c01d4f17cd51897ee4e7.tar.bz2
mate-panel-2fc628754431097a6c93c01d4f17cd51897ee4e7.tar.xz
clock: fix copy/paste error which caused use-after-free
(squashed 7099408402dc41f39e32f4afa3e874e968e879bc + 3b9119b3bb941de61654d45eb693a85f48d56289 for 1.18 branch)
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/clock-location-tile.c2
1 files changed, 1 insertions, 1 deletions
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 ("");