From: Chengyi Zhao Date: Thu, 18 Dec 2014 14:15:32 +0000 (+0800) Subject: Clone the profile handle X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2a8c7ee3acff2fc8778d6afba1e11d54aee0b62;p=platform%2Fcore%2Fapi%2Fconnection.git Clone the profile handle Change-Id: I58cf5551ef36fd74d0f08fe55607f8b10cf6034a Signed-off-by: Chengyi Zhao --- diff --git a/src/connection_profile.c b/src/connection_profile.c index 0993cf9..5590291 100644 --- a/src/connection_profile.c +++ b/src/connection_profile.c @@ -241,14 +241,12 @@ EXPORT_API int connection_profile_clone(connection_profile_h* cloned_profile, co return CONNECTION_ERROR_INVALID_PARAMETER; } - /* *cloned_profile = g_try_malloc0(sizeof(net_profile_info_t)); if (*cloned_profile == NULL) return CONNECTION_ERROR_OUT_OF_MEMORY; memcpy(*cloned_profile, origin_profile, sizeof(net_profile_info_t)); _connection_libnet_add_to_profile_list(*cloned_profile); - */ return CONNECTION_ERROR_NONE; }