Fix C Generator 86/241186/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Aug 2020 09:39:44 +0000 (18:39 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Aug 2020 09:39:44 +0000 (18:39 +0900)
- Initalizes variables of delegate

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

index 3e27f6c..7c775f5 100644 (file)
@@ -180,8 +180,9 @@ void CProxyBodyGen::GenInterfaceDelegatorInvoker(
           int cnt = 0;
           for (auto& i : decl.GetParameters().GetParams()) {
             str += GetParcelParamTypeString(
-              i->GetParameterType().GetBaseType(), false) +
-              i->GetID() + ";" + NLine(1);
+              i->GetParameterType().GetBaseType(), false) + i->GetID();
+            str += " = " + GetErrorValue(i->GetParameterType().GetBaseType());
+            str += ";" + NLine(1);
             cnt++;
           }
           if (cnt > 0)