From 1504fb66ed601ad689ee04fcf42219457f2ebdd5 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 9 Sep 2021 18:57:47 +0900 Subject: [PATCH] Fix a bug about C Generator The delegate copy function has to set the callback function and the user data. Change-Id: Ic9d0f65551d241da094aed667b8307da2b431c51 Signed-off-by: Hwankyu Jhun --- idlc/gen/c_proxy_body_gen_cb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idlc/gen/c_proxy_body_gen_cb.h b/idlc/gen/c_proxy_body_gen_cb.h index 54885ea..572ce55 100644 --- a/idlc/gen/c_proxy_body_gen_cb.h +++ b/idlc/gen/c_proxy_body_gen_cb.h @@ -177,6 +177,9 @@ int ___clone(___h h, < return ret; } + handle->callback = h->callback; + handle->user_data = h->user_data; + *clone = handle; return RPC_PORT_ERROR_NONE; -- 2.7.4