From 3a4878a53a187792f1706d9d6f9573176eb30c6d Mon Sep 17 00:00:00 2001 From: deepti Date: Tue, 2 Apr 2019 16:58:45 +0530 Subject: [PATCH] coverity error handling This patch initializes uninitialized member variable. Coverity: 107447,110284 Reference: https://review.tizen.org/gerrit/#/c/platform/framework/web/crosswalk-tizen/+/178828/ Change-Id: I51364923b3b0c18d824eb5dfc883ef0ad356735c Signed-off-by: deepti --- common/app_control.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/app_control.cc b/common/app_control.cc index 8fbe4e8..aa14230 100755 --- a/common/app_control.cc +++ b/common/app_control.cc @@ -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_); } -- 2.7.4