ivi-shell: bugfix, SEVG by adding NULL check in ivi_layout_get_screen_resolution

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Nobuhiko Tanibata 10 years ago committed by Pekka Paalanen
parent e2b8214efd
commit 0c217cb694
  1. 2
      ivi-shell/ivi-layout.c

@ -1535,7 +1535,7 @@ ivi_layout_get_screen_resolution(struct ivi_layout_screen *iviscrn,
{ {
struct weston_output *output = NULL; 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"); weston_log("ivi_layout_get_screen_resolution: invalid argument\n");
return IVI_FAILED; return IVI_FAILED;
} }

Loading…
Cancel
Save