libical r645 - in branches/gnome-2-22: . src/libical



Author: pchen
Date: Fri Jun  6 07:55:40 2008
New Revision: 645
URL: http://svn.gnome.org/viewvc/libical?rev=645&view=rev

Log:
2008-06-06  Chenthill Palanisamy  <pchenthill novell com>

        * src/libical/icaltz-util.c: (icaltzutil_fetch_timezone): If
        * there are no transitions take the index for types as 0.



Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/libical/icaltz-util.c

Modified: branches/gnome-2-22/src/libical/icaltz-util.c
==============================================================================
--- branches/gnome-2-22/src/libical/icaltz-util.c	(original)
+++ branches/gnome-2-22/src/libical/icaltz-util.c	Fri Jun  6 07:55:40 2008
@@ -148,7 +148,7 @@
 
 	/* If the transition time is not found, it means the timezone does not have the dst changes */
 	if (!found) {
-		*stdidx = i -1;
+		*stdidx = i-1;
 		return;
 	}
 
@@ -326,9 +326,9 @@
 	icalcomponent_add_property (tz_comp, icalprop);
 	
 	if (stdidx != -1) {
-		if (stdidx != 0)
+		if (num_trans != 0)
 			zidx = trans_idx [stdidx];
-		else 
+		else
 			zidx = 0;
 
 		std_comp = icalcomponent_new (ICAL_XSTANDARD_COMPONENT);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]