From 344e2fd1f2aa580e13faf398b5d0179479cd5e76 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Mon, 21 Sep 2009 14:46:50 +1000 Subject: nouveau: drm_api create_screen()'s 'arg' argument can be NULL --- src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/winsys/drm/nouveau') diff --git a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c index 091cbbcfed..117ca6059b 100644 --- a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c +++ b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c @@ -112,7 +112,7 @@ nouveau_drm_create_screen(struct drm_api *api, int fd, return NULL; } - if (arg->mode == DRM_CREATE_DRI1) { + if (arg && arg->mode == DRM_CREATE_DRI1) { struct nouveau_dri *nvdri = dri1->ddx_info; enum pipe_format format; -- cgit v1.2.3