compositor-fbdev: give the output a name
If you have devices configured in seats with udev then the output names
are tested with string compare. This fixes a potential crash on startup and
device insertion.
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c
index eedf252..ae526e5 100644
--- a/src/compositor-fbdev.c
+++ b/src/compositor-fbdev.c
@@ -550,6 +550,7 @@
output->base.subpixel = WL_OUTPUT_SUBPIXEL_UNKNOWN;
output->base.make = "unknown";
output->base.model = output->fb_info.id;
+ output->base.name = strdup("fbdev");
weston_output_init(&output->base, &compositor->base,
0, 0, output->fb_info.width_mm,