-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tomas Carnecky wrote:
> This fixed a 'Result of operation is garbage or undefined' bug found
> by clang. 'framebuffer.base' was read before being initialized.
> 
> Signed-off-by: Tomas Carnecky <[email protected]>

Reviewed-by: Ian Romanick <[email protected]>

> ---
>  glx/glxdri.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/glx/glxdri.c b/glx/glxdri.c
> index 6122653..f20e50c 100644
> --- a/glx/glxdri.c
> +++ b/glx/glxdri.c
> @@ -977,6 +977,8 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
>       return NULL;
>      }
>  
> +    framebuffer.base = NULL;
> +
>      screen = xcalloc(1, sizeof *screen);
>      if (screen == NULL)
>        return NULL;

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksxIjQACgkQX1gOwKyEAw8VZACglmUkBBycEGiuSqNeCX7DQkvX
ZUUAn12ngyO5+Z2947KkBop3Lhpjp5ev
=bq5q
-----END PGP SIGNATURE-----
_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to