From 9a753ec3cfbf64ec11ea2bccbaa5c511177a69b3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 31 May 2012 14:07:14 -0500 Subject: in indicator_power_device_get_time_details(), limit the scope of variables short_timestring and detailed_timestring --- src/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device.c b/src/device.c index dc8db3a..8f040b2 100644 --- a/src/device.c +++ b/src/device.c @@ -520,11 +520,11 @@ indicator_power_device_get_time_details (const IndicatorPowerDevice * device, const gdouble percentage = indicator_power_device_get_percentage (device); const gchar * device_name = device_kind_to_localised_string (indicator_power_device_get_kind(device)); - gchar *short_timestring = NULL; - gchar *detailed_timestring = NULL; - if (time > 0) { + gchar *short_timestring = NULL; + gchar *detailed_timestring = NULL; + get_timestring (time, &short_timestring, &detailed_timestring); -- cgit v1.2.3