diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2008-04-02 16:29:30 +1000 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-04-02 12:03:12 -0400 |
commit | 7d97c19c2d530c8db16b01de9b168dd910059b4e (patch) | |
tree | 131afaac49e3196e5d67d77b103ec3edf74a1b87 | |
parent | 2156bdf3b7b5b7d3ee4d3278eac0f28c7bff830a (diff) |
dri2: fix crasher if DRI2Connect fails
-rw-r--r-- | hw/xfree86/dri2/dri2ext.c | 2 |
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); |