coverity error handling 28/178828/1 accepted/tizen/unified/20180515.063742 submit/tizen/20180514.085832
authorGuneet K <g.khosla@samsung.com>
Mon, 14 May 2018 06:55:41 +0000 (12:25 +0530)
committerGuneet K <g.khosla@samsung.com>
Mon, 14 May 2018 07:29:18 +0000 (12:59 +0530)
This patch initializes uninitialized member variable.

Coverity:107447,110284

Change-Id: I86cd7feafa845323c502ababf1f9287d93818eac
Signed-off-by: Guneet K <g.khosla@samsung.com>
common/app_control.cc

index 8fbe4e852f8250faf4a9f9bc258bac68b7249a89..aa1423040c91e97e2e692379aad15ac7af9e5c29 100755 (executable)
@@ -108,13 +108,15 @@ static void AppendExtraDatafromUrl(AppControl* request,
 }  // namespace
 
 AppControl::AppControl(app_control_h app_control)
-    : app_control_bundle_(nullptr){
+    : app_control_bundle_(nullptr),
+      app_control_(NULL){
   app_control_clone(&app_control_, app_control);
   app_control_to_bundle(app_control_, &app_control_bundle_);
 }
 
 AppControl:: AppControl()
-    : app_control_bundle_(nullptr){
+    : app_control_bundle_(nullptr),
+      app_control_(NULL){
   app_control_create(&app_control_);
   app_control_to_bundle(app_control_, &app_control_bundle_);
 }