Avoid crashing on various platforms, by not setting any argument at all.
Bug-AGL: SPEC-3843
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ifb082b95fd6ebc71e863b843c9fd895f5f7efdde
afm_proxy.ps(request->api, &jobj);
if (jobj) {
afm_proxy.ps(request->api, &jobj);
if (jobj) {
- const int len = json_object_array_length(jobj);
- for (int i = 0; i < len; i++) {
+ size_t len = json_object_array_length(jobj);
+ for (size_t i = 0; i < len; i++) {
struct json_object *aid;
struct json_object *item =
json_object_array_get_idx(jobj, i);
struct json_object *aid;
struct json_object *item =
json_object_array_get_idx(jobj, i);
if (strcasecmp(verb, "showWindow") == 0) {
ret = is_application_running(request, id);
if (ret == AFB_REQ_NOT_STARTED_APPLICATION) {
if (strcasecmp(verb, "showWindow") == 0) {
ret = is_application_running(request, id);
if (ret == AFB_REQ_NOT_STARTED_APPLICATION) {
- AFB_INFO("%s is not running. Will attempt to start it");
+ AFB_INFO("%s is not running. Will attempt to start it", appid);
- AFB_INFO("%s found to be running. Forwarding request to the client");
+ AFB_INFO("%s found to be running. Forwarding request to the client", appid);
ret = ip->second->handleRequest(request, verb);
}
else {
ret = ip->second->handleRequest(request, verb);
}
else {
/* if we have an error then we couldn't start the application so we remove it */
if (error) {
/* if we have an error then we couldn't start the application so we remove it */
if (error) {
- AFB_INFO("asynchronous call, removing client %s", cdata->appid);
+ AFB_INFO("asynchronous call, removing client %s", cdata->appid.c_str());
clientManager->removeClient(cdata->appid);
}
clientManager->removeClient(cdata->appid);
}