weston/desktop-shell
Armin Krezović 10b0618c07 desktop-shell: Return NULL when no outputs are present
Currently, get_default_output returns a first member
of the linked list, which can never be NULL.

This is problematic, as the function would return a
dangling pointer and NULL pointer checks wouldn't
work where needed and some of the invalid members
would get accessed that way, resulting in a crash.

Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
2016-06-27 13:17:05 +03:00
..
exposay.c Support axis source, axis discrete, frame and axis stop events 2016-01-19 12:33:26 +08:00
input-panel.c desktop-shell: Rename protocol weston_desktop_shell 2015-11-19 14:58:58 +02:00
shell.c desktop-shell: Return NULL when no outputs are present 2016-06-27 13:17:05 +03:00
shell.h desktop-shell: resize background and panel surfaces on output resize v4 2016-06-10 11:52:01 +03:00