aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/devbell.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/devbell.c')
-rw-r--r--xorg-server/Xi/devbell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xorg-server/Xi/devbell.c b/xorg-server/Xi/devbell.c
index c75b94dee..202c8de18 100644
--- a/xorg-server/Xi/devbell.c
+++ b/xorg-server/Xi/devbell.c
@@ -142,7 +142,8 @@ ProcXDeviceBell(ClientPtr client)
newpercent = base + newpercent;
else
newpercent = base - newpercent + stuff->percent;
+ if (proc == NULL)
+ return BadValue;
(*proc) (newpercent, dev, ctrl, class);
-
return Success;
}