summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglimage.c
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2012-04-01 18:48:13 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2012-04-13 14:25:08 +0000
commit071501a68129768c6223beb24f7363d87c6684ea (patch)
tree658ef07d6511cacf1d7ff2931e45d17f35eae1bd /src/egl/main/eglimage.c
parent520521e3809a36201582fa48ee173eba12e97812 (diff)
downloadexternal_mesa3d-071501a68129768c6223beb24f7363d87c6684ea.zip
external_mesa3d-071501a68129768c6223beb24f7363d87c6684ea.tar.gz
external_mesa3d-071501a68129768c6223beb24f7363d87c6684ea.tar.bz2
egl: fix uninitialized values
Noticed by clang: eglimage.c:48:28: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(attrs, 0, sizeof(attrs)); ~~~~~ ^~~~~ NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/egl/main/eglimage.c')
-rw-r--r--src/egl/main/eglimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglimage.c b/src/egl/main/eglimage.c
index d5deae7..1174d0a 100644
--- a/src/egl/main/eglimage.c
+++ b/src/egl/main/eglimage.c
@@ -45,7 +45,7 @@ _eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy,
(void) dpy;
- memset(attrs, 0, sizeof(attrs));
+ memset(attrs, 0, sizeof(*attrs));
attrs->ImagePreserved = EGL_FALSE;
attrs->GLTextureLevel = 0;
attrs->GLTextureZOffset = 0;