Before calling the loader_terminate_cb callback function, the launchpad library
checks whether the argument count is zero or not.
If it's true, the launchpad library does not call the callback function for
backward compatibility.
Change-Id: Ifeb9283701814efe6c1f1b69f4fbf129a3ce9b56
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
region_format_config_.reset();
language_config_.reset();
+ if (app_argc_ == 0 || app_argv_ == nullptr)
+ return -1;
+
if (callback_.terminate != nullptr)
return callback_.terminate(app_argc_, app_argv_, user_data_);