Fix #3399007: Crash when sipe_cal_working_hours->days_of_week is NULL
commitda4112a687c4b46bb35fa47383ce99ba3b8f8b57
authorStefan Becker <chemobejk@gmail.com>
Sat, 27 Aug 2011 07:03:09 +0000 (27 10:03 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sat, 27 Aug 2011 07:03:09 +0000 (27 10:03 +0300)
tree161077b3809b8ee38128037bc576f8ae37131c56
parent548767cadb370e5f59f907dd946d76e7b3884947
Fix #3399007: Crash when sipe_cal_working_hours->days_of_week is NULL

The XML node WorkingPeriodArray/WorkingPeriod/DayofWeek doesn't exist or is
empty when a user hasn't defined the work week in the calendar settings.
Therefore sipe_xml_data() can return NULL for the days_of_week string.

Added a NULL check before using days_of_week in strstr().
ChangeLog
src/core/sipe-cal.c