Commit da70c7d5 authored by Keith Packard's avatar Keith Packard

xkb: Initialize 'bad' Atom in _XkbSetNamesCheck

When _XkbCheckAtoms returns NULL for an error, it always sets the
error return code, but GCC can't figure that out, so just initialize
the local variable, 'bad', in _XkbSetNamesCheck to eliminate the warning.
Signed-off-by: 's avatarKeith Packard <keithp@keithp.com>
Reviewed-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 2566835b
......@@ -3986,7 +3986,7 @@ _XkbSetNamesCheck(ClientPtr client, DeviceIntPtr dev,
{
XkbDescRec *xkb;
CARD32 *tmp;
Atom bad;
Atom bad = None;
tmp = data;
xkb = dev->key->xkbInfo->desc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment