aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-22 17:42:27 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-22 17:43:51 +0800
commit1f391b975297fc276073fd48406b2b02eed61277 (patch)
tree7ba4cdd39dd3804906ff47ee8aaa16041047e1ad
parent80dac46f3765ba8328bc563cba3fe49417680476 (diff)
downloadgsoc2013-empathy-1f391b975297fc276073fd48406b2b02eed61277.tar
gsoc2013-empathy-1f391b975297fc276073fd48406b2b02eed61277.tar.gz
gsoc2013-empathy-1f391b975297fc276073fd48406b2b02eed61277.tar.bz2
gsoc2013-empathy-1f391b975297fc276073fd48406b2b02eed61277.tar.lz
gsoc2013-empathy-1f391b975297fc276073fd48406b2b02eed61277.tar.xz
gsoc2013-empathy-1f391b975297fc276073fd48406b2b02eed61277.tar.zst
gsoc2013-empathy-1f391b975297fc276073fd48406b2b02eed61277.zip
empathy-time.c: fix shadow declaration
-rw-r--r--libempathy/empathy-time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy/empathy-time.c b/libempathy/empathy-time.c
index 19397e7a9..a39636dde 100644
--- a/libempathy/empathy-time.c
+++ b/libempathy/empathy-time.c
@@ -40,18 +40,18 @@ empathy_time_get_current (void)
time_t
empathy_time_get_local_time (struct tm *tm)
{
- const gchar *timezone;
+ const gchar *tz;
time_t t;
- timezone = g_getenv ("TZ");
+ tz = g_getenv ("TZ");
g_setenv ("TZ", "", TRUE);
tzset ();
t = mktime (tm);
- if (timezone) {
- g_setenv ("TZ", timezone, TRUE);
+ if (tz) {
+ g_setenv ("TZ", tz, TRUE);
} else {
g_unsetenv ("TZ");
}