[gnome-panel] clock: don't use uninitialized variable
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] clock: don't use uninitialized variable
- Date: Mon, 27 Oct 2014 16:21:59 +0000 (UTC)
commit 01dbc4c1cc8c8fb680024aa68434ef4bfb9c399b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Oct 11 23:29:16 2014 +0300
clock: don't use uninitialized variable
Make sure we don't try to use uninitialized variable in
clock_needs_label_refresh function.
applets/clock/clock-location-tile.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c
index c52df71..e1b21b0 100644
--- a/applets/clock/clock-location-tile.c
+++ b/applets/clock/clock-location-tile.c
@@ -400,6 +400,9 @@ clock_needs_label_refresh (ClockLocationTile *this)
long offset;
gboolean retval;
+ if (!priv->last_refresh)
+ return TRUE;
+
now = clock_location_localtime (priv->location);
offset = clock_location_get_offset (priv->location);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]