Fix set value for array in c base generator 51/316951/1
authorSukhyungKang <shine.kang@samsung.com>
Mon, 2 Sep 2024 01:16:24 +0000 (10:16 +0900)
committerSukhyungKang <shine.kang@samsung.com>
Mon, 2 Sep 2024 01:16:24 +0000 (10:16 +0900)
Change-Id: Idbf48f6c380a0456745018eacec23ce4f28e0e8d
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
idlc/gen/version2/c_body_generator_array_base_cb.hh

index 20d1e717c71e9cc6a1483375a53636792cec1853..b2cfa3d92245f6966505b104d27620ee660c2c54 100644 (file)
@@ -206,7 +206,7 @@ int <PREFIX>_<NAME>_set(<PREFIX>_<NAME>_h h, <PARAM_TYPE_IN>*value, int size)
   temp->value = (<ELEMENT_TYPE>*)value;
   temp->size = size;
 
-  ret = <PREFIX>_<NAME>_clone(handle, (<PREFIX>_<NAME>_h *)&clone);
+  ret = <PREFIX>_<NAME>_clone(temp, (<PREFIX>_<NAME>_h *)&clone);
   if (ret != RPC_PORT_ERROR_NONE) {
     _E("Failed to clone handle. error(%d)", ret);
     temp->value = nullptr;