From: <svn...@op...> - 2009-09-14 13:11:21
|
Author: bellmich Date: Mon Sep 14 15:11:05 2009 New Revision: 1269 URL: http://libsyncml.opensync.org/changeset/1269 Log: SmlDataSyncDataStoreSession is usually unknown to the library user. Therefore the data store must be checked. Modified: trunk/tools/syncml-ds-tool.c Modified: trunk/tools/syncml-ds-tool.c ============================================================================== --- trunk/tools/syncml-ds-tool.c Mon Sep 14 13:36:23 2009 (r1268) +++ trunk/tools/syncml-ds-tool.c Mon Sep 14 15:11:05 2009 (r1269) @@ -1360,7 +1360,9 @@ GList *o = datastores; while (o) { datastore = o->data; - if (datastore->session == session) { + if (datastore->object == sml_data_sync_data_store_session_get_data_store(session)) { + if (datastore->session == NULL) + datastore->session = session; /* abort the scan */ o = NULL; } else { @@ -1398,6 +1400,7 @@ { GError *error = NULL; if (!g_thread_supported ()) g_thread_init (NULL); + g_type_init(); /* init DS object */ |