diff options
author | Ran Benita <ran234@gmail.com> | 2017-12-12 14:30:21 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2017-12-12 14:33:24 +0200 |
commit | 26453b84732da870f5695ee347970b337cfea9c1 (patch) | |
tree | fd9e6b43b895cc146d9ff7e21140dc5171b01a1c /src/darray.h | |
parent | 9f85d6b78cc05f798a2d335774ee1cedc5b2b784 (diff) | |
download | xorg-lib-libxkbcommon-26453b84732da870f5695ee347970b337cfea9c1.tar.gz |
keymap: fix NULL dereference when dumping the default fallback type
The default fallback type uses
type->level_names = NULL
but the keymap-dump code was not checking this case.
Instead of adding more workarounds and possible bugs (e.g. previous
commit), let's just keep the number of level names separately. This has
the additional advantage retains extraneous level name if someone adds
them for some reason.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/darray.h')
0 files changed, 0 insertions, 0 deletions