Commit fd45f60f authored by Pekka Paalanen's avatar Pekka Paalanen
Browse files

ivi-shell: add sanity check in ivi_shell_surface_configure



This should not get called unless there is an ivi_shell_surface.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: default avatarEugen Friedrich <friedrix@gmail.com>
parent cfb053f2
......@@ -108,7 +108,11 @@ ivi_shell_surface_configure(struct weston_surface *surface,
{
struct ivi_shell_surface *ivisurf = get_ivi_shell_surface(surface);
if (surface->width == 0 || surface->height == 0 || ivisurf == NULL)
assert(ivisurf);
if (!ivisurf)
return;
if (surface->width == 0 || surface->height == 0)
return;
if (ivisurf->width != surface->width ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment