From: Michal Krol Date: Fri, 3 Apr 2009 12:58:39 +0000 (+0200) Subject: util/debug: Initialise local variables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2ed91201e1abcc61e30b367c00c6e0f036d9214;p=mesa.git util/debug: Initialise local variables. --- diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c index 1b984425b59..96a2222f9b6 100644 --- a/src/gallium/auxiliary/util/u_debug.c +++ b/src/gallium/auxiliary/util/u_debug.c @@ -720,8 +720,8 @@ debug_dump_surface_bmp(const char *filename, struct pipe_surface *surface) { struct pipe_transfer *transfer; - struct pipe_texture *texture; - struct pipe_screen *screen; + struct pipe_texture *texture = surface->texture; + struct pipe_screen *screen = texture->screen; transfer = screen->get_tex_transfer(screen, texture, surface->face, surface->level, surface->zslice,