From: <svn...@op...> - 2009-08-07 17:50:14
|
Author: bellmich Date: Fri Aug 7 19:50:00 2009 New Revision: 1241 URL: http://libsyncml.opensync.org/changeset/1241 Log: adapted HTTP client transport to reduced SmlLocation API Modified: trunk/libsyncml/data_sync_api/transport_http_client.c Modified: trunk/libsyncml/data_sync_api/transport_http_client.c ============================================================================== --- trunk/libsyncml/data_sync_api/transport_http_client.c Fri Aug 7 19:49:19 2009 (r1240) +++ trunk/libsyncml/data_sync_api/transport_http_client.c Fri Aug 7 19:50:00 2009 (r1241) @@ -86,20 +86,10 @@ /* create session */ target = sml_location_new(); - if (!target) { - g_set_error(error, SML_ERROR, SML_ERROR_GENERIC, "Cannot create new SmlLocation object - out of memory."); - goto error; - } - if (!sml_location_set_uri(target, dsObject->target, error)) - g_object_unref(target); + sml_location_set_uri(target, dsObject->target); source = sml_location_new(); - if (!source) { - g_set_error(error, SML_ERROR, SML_ERROR_GENERIC, "Cannot create new SmlLocation object - out of memory."); - goto error; - } - if (!sml_location_set_uri(source, dsObject->identifier, error)) - g_object_unref(source); + sml_location_set_uri(source, dsObject->identifier); gsize sessionString = smlManagerGetNewSessionID(dsObject->manager); dsObject->session = smlSessionNew(SML_SESSION_TYPE_CLIENT, |