From: <dg...@su...> - 2009-01-16 16:29:48
|
Author: savago Date: Fri Jan 16 17:28:53 2009 New Revision: 5173 URL: http://www.opensync.org/changeset/5173 Log: Fixing SEGFAULT by updating parameter list of gc_discover interface. Modified: plugins/google-calendar/src/gcalendar.c Modified: plugins/google-calendar/src/gcalendar.c ============================================================================== --- plugins/google-calendar/src/gcalendar.c Fri Jan 16 16:41:23 2009 (r5172) +++ plugins/google-calendar/src/gcalendar.c Fri Jan 16 17:28:53 2009 (r5173) @@ -779,7 +779,7 @@ const char *objtype, *tmp; int i, numobjs; - osync_error_set(error, OSYNC_ERROR_GENERIC, "no msg"); + //osync_error_set(error, OSYNC_ERROR_GENERIC, "no msg"); plgdata = osync_try_malloc0(sizeof(struct gc_plgdata), error); config = osync_plugin_info_get_config(info); if ((!plgdata) || (!config)) { @@ -933,7 +933,7 @@ return NULL; } -static osync_bool gc_discover(void *data, OSyncPluginInfo *info, OSyncError **error) +static osync_bool gc_discover(OSyncPluginInfo *info, void *data, OSyncError **error) { osync_trace(TRACE_ENTRY, "%s(%p, %p, %p)", __func__, data, info, error); |