[PATCH weston 6/7] text: Don't crash if a seat has no keyboard

Daniel Stone daniel at fooishbar.org
Sun Dec 7 23:26:04 PST 2014


Hi,

On 5 December 2014 at 21:38, Derek Foreman <derekf at osg.samsung.com> wrote:

> +       if (!context->keyboard)
> +               return;
>
> -       if (!grab->keyboard)
> +       grab = &context->input_method->seat->keyboard->input_method_grab;
>


The discrepancy between the test and the dereference here makes me a little
itchy.

Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20141208/15f73ae9/attachment.html>


More information about the wayland-devel mailing list