From 297d926a8987b59c8a29ae1a48c1b83d38d069f9 Mon Sep 17 00:00:00 2001 From: Guneet K Date: Mon, 14 May 2018 12:25:41 +0530 Subject: [PATCH] coverity error handling This patch initializes uninitialized member variable. Coverity:107447,110284 Change-Id: I86cd7feafa845323c502ababf1f9287d93818eac Signed-off-by: Guneet K --- 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 8fbe4e852..aa1423040 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.34.1