From: Nobuhiko Tanibata <nobuhiko_tanib...@xddp.denso.co.jp>

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanib...@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paala...@collabora.co.uk>
---
 ivi-shell/ivi-layout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 7bc3aab..2cce2d3 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1535,7 +1535,7 @@ ivi_layout_get_screen_resolution(struct ivi_layout_screen 
*iviscrn,
 {
        struct weston_output *output = NULL;
 
-       if (pWidth == NULL || pHeight == NULL) {
+       if (iviscrn == NULL || pWidth == NULL || pHeight == NULL) {
                weston_log("ivi_layout_get_screen_resolution: invalid 
argument\n");
                return IVI_FAILED;
        }
-- 
1.8.3.1

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to