summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xkb/xkb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xkb/xkb.c b/xkb/xkb.c
index d056c698c..183d6ffa1 100644
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -2716,7 +2716,7 @@ _XkbSetMap(ClientPtr client, DeviceIntPtr dev, xkbSetMapReq * req, char *values)
int
ProcXkbSetMap(ClientPtr client)
{
- DeviceIntPtr dev;
+ DeviceIntPtr dev, master;
char *tmp;
int rc;
@@ -2744,7 +2744,7 @@ ProcXkbSetMap(ClientPtr client)
if (rc != Success)
return rc;
- DeviceIntPtr master = GetMaster(dev, MASTER_KEYBOARD);
+ master = GetMaster(dev, MASTER_KEYBOARD);
if (stuff->deviceSpec == XkbUseCoreKbd) {
DeviceIntPtr other;