From 0a4fa666b5f264769858cf12ecec4f1f4978020d Mon Sep 17 00:00:00 2001 From: David Reveman Date: Tue, 18 Nov 2008 18:20:55 -0500 Subject: [PATCH] Check if reply != NULL. --- hw/dmx/dmxinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/dmx/dmxinput.c b/hw/dmx/dmxinput.c index 37147454b..ddd7627e2 100644 --- a/hw/dmx/dmxinput.c +++ b/hw/dmx/dmxinput.c @@ -820,7 +820,7 @@ dmxDevicePointerReplyCheck (DeviceIntPtr pDevice, if (request == pDevPriv->grab.sequence) { - if (reply->response_type == 1) + if (reply) { if (pDevPriv->deviceId >= 0) {