From e516c3bb806265b85ca82d947e0313ccdad2cb31 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 17 Mar 2015 13:22:34 -0500 Subject: [PATCH] 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 Reviewed-by: Pekka Paalanen --- src/compositor-fbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c index eedf252b..ae526e53 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,