coverity error handling 89/200889/3
authordeepti <d.saraswat@samsung.com>
Tue, 5 Mar 2019 10:52:52 +0000 (16:22 +0530)
committerdeepti <d.saraswat@samsung.com>
Thu, 7 Mar 2019 06:04:22 +0000 (11:34 +0530)
This patch initializes uninitialized member variable.

Coverity:107447 , 110284

Reference: https://review.tizen.org/gerrit/#/c/platform/framework/web/crosswalk-tizen/+/174707/

Change-Id: I80b37a13c7d41fa5a60a6c2ab324ecfa53d839e0
Signed-off-by: deepti <d.saraswat@samsung.com>
common/app_control.cc

index ce625e9..8fbe4e8 100755 (executable)
@@ -107,12 +107,14 @@ static void AppendExtraDatafromUrl(AppControl* request,
 
 }  // namespace
 
-AppControl::AppControl(app_control_h app_control) {
+AppControl::AppControl(app_control_h app_control)
+    : app_control_bundle_(nullptr){
   app_control_clone(&app_control_, app_control);
   app_control_to_bundle(app_control_, &app_control_bundle_);
 }
 
-AppControl:: AppControl() {
+AppControl:: AppControl()
+    : app_control_bundle_(nullptr){
   app_control_create(&app_control_);
   app_control_to_bundle(app_control_, &app_control_bundle_);
 }