From: <dg...@su...> - 2009-01-19 20:08:42
|
Author: savago Date: Mon Jan 19 21:07:37 2009 New Revision: 5196 URL: http://www.opensync.org/changeset/5196 Log: Fixing YASF (Yet Another SegFault): when retrieving the anchor, the osync_error need to point to a valid address. Modified: plugins/google-calendar/src/gcalendar.c Modified: plugins/google-calendar/src/gcalendar.c ============================================================================== --- plugins/google-calendar/src/gcalendar.c Mon Jan 19 19:54:25 2009 (r5195) +++ plugins/google-calendar/src/gcalendar.c Mon Jan 19 21:07:37 2009 (r5196) @@ -211,7 +211,7 @@ int result = 0, i; char *timestamp = NULL, *msg, *raw_xml = NULL; gcal_event event; - OSyncError *anchor_error; + OSyncError *anchor_error = NULL; if (!(plgdata->gcal_sink = osync_plugin_info_get_sink(info))) goto error; @@ -361,7 +361,7 @@ int result = 0, i; char *timestamp = NULL, *msg, *raw_xml = NULL; gcal_contact contact; - OSyncError *anchor_error; + OSyncError *anchor_error = NULL; if (!(plgdata->gcont_sink = osync_plugin_info_get_sink(info))) goto error; |