mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 16:00:24 +01:00
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>
(cherry picked from commit 071501a681)
This commit is contained in:
parent
108d544cae
commit
4dd228a0a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue