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

2014-12-16 Thread Pekka Paalanen
On Mon, 15 Dec 2014 21:22:11 + Jan Arne Petersen wrote: > Hey, > > On Mon Dec 08 2014 at 5:57:04 PM Derek Foreman > 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 sho

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

2014-12-15 Thread Jan Arne Petersen
Hey, On Mon Dec 08 2014 at 5:57:04 PM Derek Foreman 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 > --- > Made the c

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

2014-12-08 Thread Derek Foreman
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 --- Made the check similar to the dereference. src/text-backend.c | 16 ++--