Fail gracefully on failure to find component include
authorDaniel Stone <daniel@fooishbar.org>
Thu, 29 Mar 2012 16:39:11 +0000 (17:39 +0100)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 29 Mar 2012 16:39:11 +0000 (17:39 +0100)
commitcc5588c65b504c8815e3fc56bec90b6d9ae3db24
tree7565a95801731216543828af5de33987f9e75f60
parent9b14e0c311ca5f0ab7017e058fc9a34b0e5e04b2
Fail gracefully on failure to find component include

If we can't find the component of the include file we're looking for,
make sure we don't return success when we meant failure, segfault, or
spectacularly leak everything.

Tested with incorrect component includes for keycodes, compat, symbols,
and types.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reported-by: David Herrmann <dh.herrmann@googlemail.com>
src/malloc.c
src/xkbcomp/keymap.c
src/xkbcomp/symbols.c