i965g: Fix use of an uninitialized variable.
authorChia-I Wu <olv@lunarg.com>
Tue, 16 Mar 2010 07:48:03 +0000 (15:48 +0800)
committerChia-I Wu <olv@lunarg.com>
Tue, 16 Mar 2010 07:51:17 +0000 (15:51 +0800)
src/gallium/winsys/drm/i965/gem/i965_drm_api.c

index 2ebc05f47e0eba9c204d11802ea2305f96362fc3..c644eedcb317543190de3971b4f2fea3eaadac04 100644 (file)
@@ -110,7 +110,7 @@ struct drm_api i965_libdrm_api =
 struct drm_api *
 drm_api_create()
 {
-   struct drm_api *api;
+   struct drm_api *api = NULL;
 
    if (api == NULL && debug_get_bool_option("BRW_SOFTPIPE", FALSE))
       api = sw_drm_api_create(&i965_libdrm_api);