Mesa (gallium-0.2): i915: Silence warning

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Sat Nov 15 11:12:44 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 56ef0aeda5d23bf0c6147fd9d20d61abd18207af
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=56ef0aeda5d23bf0c6147fd9d20d61abd18207af

Author: Jakob Bornecrantz <jakob at tungstengraphics.com>
Date:   Sat Nov 15 12:10:32 2008 +0100

i915: Silence warning

---

 src/gallium/winsys/drm/intel/egl/intel_egl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/drm/intel/egl/intel_egl.c b/src/gallium/winsys/drm/intel/egl/intel_egl.c
index 3204ed3..ed46407 100644
--- a/src/gallium/winsys/drm/intel/egl/intel_egl.c
+++ b/src/gallium/winsys/drm/intel/egl/intel_egl.c
@@ -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];




More information about the mesa-commit mailing list