From: Chia-I Wu Date: Tue, 16 Mar 2010 07:48:03 +0000 (+0800) Subject: i965g: Fix use of an uninitialized variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0ce4a4a0994211ead8e5a77cccdd2a084e8a288;p=mesa.git i965g: Fix use of an uninitialized variable. --- diff --git a/src/gallium/winsys/drm/i965/gem/i965_drm_api.c b/src/gallium/winsys/drm/i965/gem/i965_drm_api.c index 2ebc05f47e0..c644eedcb31 100644 --- a/src/gallium/winsys/drm/i965/gem/i965_drm_api.c +++ b/src/gallium/winsys/drm/i965/gem/i965_drm_api.c @@ -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);