summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-07-16 14:14:07 -0600
committerBrian Paul <brianp@vmware.com>2012-07-16 16:03:31 -0600
commitfe2a7b7e7fca599659b1d248e160d480f2b92ba2 (patch)
treecca856ca50f29e4166cd6c685a0370e792bf6cb5 /src/gallium
parent2f92a9f721b750f30a445fee4d8c9bd6479f6b04 (diff)
downloadexternal_mesa3d-fe2a7b7e7fca599659b1d248e160d480f2b92ba2.zip
external_mesa3d-fe2a7b7e7fca599659b1d248e160d480f2b92ba2.tar.gz
external_mesa3d-fe2a7b7e7fca599659b1d248e160d480f2b92ba2.tar.bz2
st/egl: fix uninitialized pointer bug
If no format is matched in the loop the value of xconf was undefined. NOTE: This is a candidate for the 8.0 branch.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/egl/x11/native_ximage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/egl/x11/native_ximage.c b/src/gallium/state_trackers/egl/x11/native_ximage.c
index c0108fc..ae9c3b2 100644
--- a/src/gallium/state_trackers/egl/x11/native_ximage.c
+++ b/src/gallium/state_trackers/egl/x11/native_ximage.c
@@ -455,7 +455,7 @@ ximage_display_copy_to_pixmap(struct native_display *ndpy,
if (src->bind & PIPE_BIND_DISPLAY_TARGET) {
struct ximage_display *xdpy = ximage_display(ndpy);
enum pipe_format fmt = get_pixmap_format(&xdpy->base, pix);
- const struct ximage_config *xconf;
+ const struct ximage_config *xconf = NULL;
struct xlib_drawable xdraw;
int i;