It seems that gcc 4.0 is no longer initializing all members of a struct with 0, while gcc 3.3.x obviously did something like that. So we can't simply take a icaltime structure and assume its members are initalized to sane values. Rather, use a null time and set all fields later on.  I hope this fixes the end date corruption that vanRijn and and Will are observing with their gcc 4.0-compiled kdepim.
It seems that gcc 4.0 is no longer initializing all members of a struct with 0, while gcc 3.3.x obviously did something like that. So we can't simply take a icaltime structure and assume its members are initalized to sane values. Rather, use a null time and set all fields later on. 
I hope this fixes the end date corruption that vanRijn and and Will are observing with their gcc 4.0-compiled kdepim.


CCMAIL:wstephenson@kde.org

svn path=/branches/KDE/3.5/kdepim/; revision=451010

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi