registryd: Avoid crashing with a NULL keystring
authorRui Matos <tiagomatos@gmail.com>
Wed, 6 Apr 2016 14:40:44 +0000 (16:40 +0200)
committerMike Gorse <mgorse@suse.com>
Mon, 11 Apr 2016 15:49:25 +0000 (10:49 -0500)
commitbb8118284fa248b74f59426f73497fc012469198
treede0c80f82005fba18f2a728f410ce4ac37ea1a3a
parent44329fb78ee6a0fd1bd5f906084fc0b7dd912fc6
registryd: Avoid crashing with a NULL keystring

From a coverity check:

1. at-spi2-core-2.14.1/registryd/deviceeventcontroller-x11.c:1167:
deref_ptr_in_call: Dereferencing pointer "keystring".
2. at-spi2-core-2.14.1/registryd/deviceeventcontroller-x11.c:1169:
check_after_deref: Null-checking "keystring" suggests that it may be
null, but it has already been dereferenced on all paths leading to the
check.
(keystring, -1, &c))) {

https://bugzilla.gnome.org/show_bug.cgi?id=764688
registryd/deviceeventcontroller-x11.c