diff options
author | Au Doan Ngoc <au.doanngoc@vn.bosch.com> | 2023-02-28 17:19:03 +0700 |
---|---|---|
committer | Au Doan Ngoc <au.doanngoc@vn.bosch.com> | 2023-02-28 17:19:03 +0700 |
commit | 8a4948f92c82f7409f53e444fa54784e34fa87c0 (patch) | |
tree | 3bb93425e40772fdc874980a99452f68ea78e028 | |
parent | b090cb09fbf7fec9e18fc76c5ba31ac9adc76e74 (diff) | |
download | wayland-ivi-extension-8a4948f92c82f7409f53e444fa54784e34fa87c0.tar.gz |
ivi-controller: Fix the problem of assigning an address to a pointer
In function controller_screen_get, iviscrn should be checked for null
before assigning it to a pointer.
Signed-off-by: Au Doan Ngoc <au.doanngoc@vn.bosch.com>
-rw-r--r-- | weston-ivi-shell/src/ivi-controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c index c27966a..e6de020 100644 --- a/weston-ivi-shell/src/ivi-controller.c +++ b/weston-ivi-shell/src/ivi-controller.c @@ -1429,14 +1429,14 @@ controller_screen_get(struct wl_client *client, int32_t layer_count, i; uint32_t id; - lyt = iviscrn->shell->interface; - if (!iviscrn) { ivi_wm_screen_send_error(resource, IVI_WM_SCREEN_ERROR_NO_SCREEN, "the output is already destroyed"); return; } + lyt = iviscrn->shell->interface; + if (param & IVI_WM_PARAM_RENDER_ORDER) { lyt->get_layers_on_screen(iviscrn->output, &layer_count, &layer_list); |