i915: Silence warning
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Sat, 15 Nov 2008 11:10:32 +0000 (12:10 +0100)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Sat, 15 Nov 2008 11:10:32 +0000 (12:10 +0100)
src/gallium/winsys/drm/intel/egl/intel_egl.c

index 3204ed3131cd895516f9a4643404518c34ac5ab0..ed464076ee3d36157c3d3296fb86b26055ec6194 100644 (file)
@@ -565,7 +565,7 @@ static struct drm_mode_modeinfo *
 drm_find_mode(drmModeConnectorPtr connector, _EGLMode *mode)
 {
        int i;
-       struct drm_mode_modeinfo *m;
+       struct drm_mode_modeinfo *m = NULL;
 
        for (i = 0; i < connector->count_modes; i++) {
                m = &connector->modes[i];