[libgweather] [libgweather] Initialiaze variables to avoid build warning
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgweather] [libgweather] Initialiaze variables to avoid build warning
- Date: Tue, 8 Sep 2009 23:47:32 +0000 (UTC)
commit 739ac7b47cd0641872a1118e3c7200d8d7fba519
Author: Vincent Untz <vuntz gnome org>
Date: Wed Sep 9 01:46:16 2009 +0200
[libgweather] Initialiaze variables to avoid build warning
http://bugzilla.gnome.org/show_bug.cgi?id=591235
libgweather/gweather-timezone.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgweather/gweather-timezone.c b/libgweather/gweather-timezone.c
index 79a4192..be0e037 100644
--- a/libgweather/gweather-timezone.c
+++ b/libgweather/gweather-timezone.c
@@ -153,7 +153,7 @@ parse_timezone (GWeatherParser *parser)
{
GWeatherTimezone *zone = NULL;
char *id = NULL, *name = NULL;
- int offset, dst_offset;
+ int offset = 0, dst_offset = 0;
gboolean has_dst = FALSE;
id = (char *) xmlTextReaderGetAttribute (parser->xml, (xmlChar *) "id");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]