Coverity fixes
This is a bunch of miscellaneous coverity fixes.
They are all over the place, and maybe they should one PR per patch,
I think the xkb one is the only one likely to change behaviour.
This is a bunch of miscellaneous coverity fixes.
They are all over the place, and maybe they should one PR per patch,
I think the xkb one is the only one likely to change behaviour.