compositor-fbdev: make copy of the device string

Graphics / Wayland / Weston - Pekka Paalanen [collabora.co.uk] - 29 April 2016 06:14 UTC

Ensuring that the pointer to the device path stays valid gets harder and harder with migrating to the libweston-style config handling. Therefore, make a copy of the string, private to struct fbdev_output.

Now the pointer passed in to fbdev_output_create() could be freed right after the call returns.

e5b5659 compositor-fbdev: make copy of the device string
src/compositor-fbdev.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share