diff options
author | Ben Skeggs <[email protected]> | 2009-09-21 14:46:50 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2009-09-21 14:46:50 +1000 |
commit | 344e2fd1f2aa580e13faf398b5d0179479cd5e76 (patch) | |
tree | b4729df005a501ea4fba2aa6ed3ee3d5ebab2a86 /src/gallium/winsys/drm/nouveau | |
parent | e3384a0d533fe69c1b26f1b03e98beac0b42ccfb (diff) |
nouveau: drm_api create_screen()'s 'arg' argument can be NULL
Diffstat (limited to 'src/gallium/winsys/drm/nouveau')
-rw-r--r-- | src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 091cbbcfed1..117ca6059bb 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; |