[PATCH weston 1/5] compositor-fbdev: give the output a name

Derek Foreman derekf at osg.samsung.com
Tue Mar 17 11:22:34 PDT 2015


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 at osg.samsung.com>
---
 src/compositor-fbdev.c | 1 +
 1 file changed, 1 insertion(+)

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 @@ fbdev_output_create(struct fbdev_compositor *compositor,
 	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,
-- 
2.1.4



More information about the wayland-devel mailing list