coverity error handling 07/174707/4
authormallikarjun82 <vm.arjun@samsung.com>
Tue, 3 Apr 2018 14:47:56 +0000 (20:17 +0530)
committerjaekuk lee <juku1999@samsung.com>
Thu, 5 Apr 2018 23:44:15 +0000 (23:44 +0000)
This patch initializes uninitialized member variable.

Coverity:110284, 107447

Change-Id: Ia5f214e0a286b8e4a75822b3c4e62f96301d52b1
Signed-off-by: mallikarjun82 <vm.arjun@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_);
 }