Mesa (master): svga: init pointer to NULL to silence MSVC warning
Brian Paul
brianp at kemper.freedesktop.org
Fri Jun 22 23:26:19 UTC 2012
Module: Mesa
Branch: master
Commit: fe68af6e0d30a2e1fb50ee7812149e1d17092039
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe68af6e0d30a2e1fb50ee7812149e1d17092039
Author: Brian Paul <brianp at vmware.com>
Date: Fri Jun 22 09:43:18 2012 -0600
svga: init pointer to NULL to silence MSVC warning
---
src/gallium/drivers/svga/svga_screen_cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c
index 13df37f..c8562b2 100644
--- a/src/gallium/drivers/svga/svga_screen_cache.c
+++ b/src/gallium/drivers/svga/svga_screen_cache.c
@@ -167,7 +167,7 @@ svga_screen_cache_shrink(struct svga_screen *svgascreen,
{
struct svga_host_surface_cache *cache = &svgascreen->cache;
struct svga_winsys_screen *sws = svgascreen->sws;
- struct svga_host_surface_cache_entry *entry, *next_entry;
+ struct svga_host_surface_cache_entry *entry = NULL, *next_entry;
/* Walk over the list of unused buffers in reverse order: from oldest
* to newest.
More information about the mesa-commit
mailing list