[PATCH weston v2 6/7] text: Don't crash if a seat has no keyboard
Jan Arne Petersen
janarne at gmail.com
Mon Dec 15 13:22:11 PST 2014
Hey,
On Mon Dec 08 2014 at 5:57:04 PM Derek Foreman <derekf at osg.samsung.com>
wrote:
> A keyboard might not be present in a seat, so check that before
> dereferencing keyboard related pointers.
>
> Also, use the keyboard pointer we set to shorten the code a little bit.
>
> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
> ---
> Made the check similar to the dereference.
>
> src/text-backend.c | 16 ++++++++++------
> 1 file changed, 10 insertions(+), 6 deletions(-)
>
Looks good.
Regards
Jan Arne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20141215/24f657c6/attachment.html>
More information about the wayland-devel
mailing list