Commit 70487cd4 authored by Armin Krezović's avatar Armin Krezović Committed by Pekka Paalanen

fullscreen-shell: Avoid NULL pointer dereference

When there are no outputs present, an output pointer
can be NULL. Dereferencing such pointer will result
in a crash.
Signed-off-by: default avatarArmin Krezović <>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <>
parent c77f258b
......@@ -288,7 +288,7 @@ fs_output_for_output(struct weston_output *output)
static void
restore_output_mode(struct weston_output *output)
if (output->original_mode)
if (output && output->original_mode)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment