diff options
-rw-r--r-- | src/libwindowmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwindowmanager.cpp b/src/libwindowmanager.cpp index 08667e8..9012626 100644 --- a/src/libwindowmanager.cpp +++ b/src/libwindowmanager.cpp @@ -403,7 +403,7 @@ int LibWindowmanager::Impl::getAreaList(ChangeAreaReq* req) { if (json_object_object_get_ex(j, g_kKeyResponse, &val)) { HMI_DEBUG("libwm", "responce:%s", json_object_get_string(val)); if (json_object_object_get_ex(val, "areas", &jarea)) { - int size = json_object_array_length(val); + int size = json_object_array_length(jarea); for(int i = 0; i < size; i++) { json_object* elem = json_object_array_get_idx(jarea, i); |