Fix a bug about C Generator 55/263755/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 9 Sep 2021 09:57:47 +0000 (18:57 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Fri, 10 Sep 2021 01:19:53 +0000 (01:19 +0000)
The delegate copy function has to set the callback function and the user data.

Change-Id: Ic9d0f65551d241da094aed667b8307da2b431c51
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/gen/c_proxy_body_gen_cb.h

index 54885ea..572ce55 100644 (file)
@@ -177,6 +177,9 @@ int <PREFIX>_<NAME>_<DELEGATE_NAME>_clone(<PREFIX>_<NAME>_<DELEGATE_NAME>_h h, <
     return ret;
   }
 
+  handle->callback = h->callback;
+  handle->user_data = h->user_data;
+
   *clone = handle;
 
   return RPC_PORT_ERROR_NONE;