File r879190-kcal-timezones-crash.diff of Package kdepimlibs4

Subject: Fix crash in korgac on startup due to passing null timezone info
From: wstephenson@kde.org
Patch-Upstream: yes
Bug: bnc#450659,kde#176566
Index: kcal/icaltimezones.cpp
===================================================================
--- kcal/icaltimezones.cpp	(revision 879189)
+++ kcal/icaltimezones.cpp	(revision 879190)
@@ -883,7 +883,7 @@
    * This is both easier and provides more complete information than
    * extracting already parsed data from icaltimezone.
    */
-  return parse( icaltimezone_get_component( tz ) );
+  return tz ? parse( icaltimezone_get_component( tz ) ) : ICalTimeZone();
 }
 
 //@cond PRIVATE
openSUSE Build Service is sponsored by