mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-06 16:20:40 +01:00
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: Keith Packard <keithp@keithp.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
2566835b43
commit
da70c7d556
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue