From 57238a8f6d162caeaa3873aa20b2697fe8a0e37b Mon Sep 17 00:00:00 2001 From: cdfrey Date: Fri, 13 Jul 2007 21:26:25 +0000 Subject: [PATCH] - fixed null pointer access in opensync's HasMultipleVEvents() --- ChangeLog | 2 ++ opensync-plugin/src/vevent.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6fac05a5..9da1b8ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Release: version 0.8 - 2007/05/?? ------------------------------------------------------------------------------ +2007/07/13 + - fixed null pointer access in opensync's HasMultipleVEvents() 2007/07/12 - upper management directive: revert all OpenSync 0.3x changes and proceed with OpenSync 0.22. Reverting the diff --git a/opensync-plugin/src/vevent.cc b/opensync-plugin/src/vevent.cc index 1541b08e..1a26889f 100644 --- a/opensync-plugin/src/vevent.cc +++ b/opensync-plugin/src/vevent.cc @@ -147,7 +147,7 @@ unsigned short vCalendar::GetWeekDayIndex(const char *dayname) bool vCalendar::HasMultipleVEvents() const { int count = 0; - GList *attrs = vformat_get_attributes(m_format); + GList *attrs = m_format ? vformat_get_attributes(m_format) : 0; for( ; attrs; attrs = attrs->next ) { VFormatAttribute *attr = (VFormatAttribute*) attrs->data; if( strcasecmp(vformat_attribute_get_name(attr), "BEGIN") == 0 && -- 2.11.4.GIT