Author: coolo Date: Mon Mar 17 14:17:15 2008 New Revision: 9175 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9175&view=rev Log: initialize all members Modified: trunk/libzypp/zypp/PublicKey.cc Modified: trunk/libzypp/zypp/PublicKey.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/PublicKey.cc?rev=9175&r1=9174&r2=9175&view=diff ============================================================================== --- trunk/libzypp/zypp/PublicKey.cc (original) +++ trunk/libzypp/zypp/PublicKey.cc Mon Mar 17 14:17:15 2008 @@ -97,6 +97,7 @@ } tm date; + memset(&date, 0, sizeof(date)); try { @@ -111,9 +112,6 @@ return Date(); } - // reset time (set 00:00:00) - date.tm_sec = date.tm_min = date.tm_hour = 0; - time_t time_epoch = ::mktime(&date); return Date(time_epoch); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org