[Application] Initialize variable to prevent crash in case of error.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Fri, 24 Jul 2015 06:26:01 +0000 (08:26 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Fri, 24 Jul 2015 06:26:01 +0000 (08:26 +0200)
Change-Id: Ic817de115614a32494ba4131744b96a2ee79bb92
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/application/application_manager.cc

index 2347592a026f86999de7bd3ea36d01e3ee2114e5..7cb656634ee2dbd238eebf32855506d5f4e2c190 100755 (executable)
@@ -460,7 +460,7 @@ void ApplicationManager::LaunchAppControl(const picojson::value& args) {
     launch_mode_str = launch_mode.get<std::string>();
   }
 
-  app_control_h app_control;
+  app_control_h app_control = nullptr;
   result = ApplicationUtils::ApplicationControlToService(app_control_obj, &app_control);
   std::shared_ptr<std::remove_pointer<app_control_h>::type>
   app_control_ptr(app_control, &app_control_destroy); // automatically release the memory