weston/clients
Armin Krezović 7dda25b2d5 toytoolkit: Return NULL when no outputs are present
Currently, display_get_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
..
calibrator.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
clickdot.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
cliptest.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
desktop-shell.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
dnd.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
editor.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
eventdemo.c eventdemo: use %u for uint32_t printing 2016-05-16 15:01:45 +03:00
flower.c client: fix spelling mistake 2016-04-05 16:00:21 -07:00
fullscreen.c clients: Use zalloc 2016-03-09 22:54:54 -08:00
gears.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
image.c cosmetic: Remove a few double semicolons 2015-10-07 11:22:03 -07:00
ivi-shell-user-interface.c ivi-shell-user-interface: ignore all but first seat 2016-05-12 11:49:03 +03:00
keyboard.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
multi-resource.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
nested-client.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
nested.c clients/nested: fix undefined reference to xzalloc 2016-04-25 13:44:09 +03:00
presentation-shm.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
resizor.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
scaler.c clients/scaler: migrate to wp_viewporter 2016-06-09 11:07:22 +03:00
screenshot.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
simple-damage.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
simple-dmabuf-intel.c clients/dmabuf-intel: use three buffers 2016-06-17 11:30:37 +03:00
simple-dmabuf-v4l.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
simple-egl.c simple-egl: use roundtrip after get_registry request 2016-03-15 14:31:07 +02:00
simple-shm.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
simple-touch.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
smoke.c client: fix spelling mistake 2016-04-05 16:00:21 -07:00
stacking.c clients: Correct drawing glitch in stacking demo 2015-10-21 16:57:47 -05:00
subsurfaces.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
terminal.c terminal: Document console codes less cryptically 2016-06-16 11:10:35 -07:00
transformed.c clients: Update boilerplate from MIT X11 license to MIT Expat licenses 2015-06-15 13:04:18 -07:00
weston-info.c weston-info: look for the right wp_presentation 2016-04-22 10:43:40 +03:00
weston-simple-im.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
window.c toytoolkit: Return NULL when no outputs are present 2016-06-27 13:17:05 +03:00
window.h clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00