summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-04-02 16:29:30 +1000
committerDave Airlie <airlied@redhat.com>2008-04-02 16:29:30 +1000
commitb31de6a59044f91f8230aa581c9ca8540289c168 (patch)
tree4612594de59caf01dba6f014b4eee1590f5aa72e
parentebc56aca8bdfec1918cac3c8380895dfddea48ce (diff)
dri2: fix crasher if DRI2Connect fails
-rw-r--r--hw/xfree86/dri2/dri2ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c
index ca2e02970..d1d52a427 100644
--- a/hw/xfree86/dri2/dri2ext.c
+++ b/hw/xfree86/dri2/dri2ext.c
@@ -114,7 +114,7 @@ ProcDRI2Connect(ClientPtr client)
ScreenPtr pScreen;
int fd;
const char *driverName;
- char *busId;
+ char *busId = NULL;
unsigned int sareaHandle;
REQUEST_SIZE_MATCH(xDRI2ConnectReq);