summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_surfaces.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-04-18 22:45:18 -0700
committerVinson Lee <vlee@vmware.com>2010-04-18 22:45:18 -0700
commitaa5be94139ed4fd065c15b3691ef6235026a10e2 (patch)
treed741a5e6c88e735e71a9206dd1360f88995115da /src/gallium/auxiliary/util/u_surfaces.c
parent349c168a6eb1a918dbf1ff639ff1f7da89217b1c (diff)
auxiliary: Initialize variable.
Diffstat (limited to 'src/gallium/auxiliary/util/u_surfaces.c')
-rw-r--r--src/gallium/auxiliary/util/u_surfaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_surfaces.c b/src/gallium/auxiliary/util/u_surfaces.c
index ddfc7a9d28..39cb4e15da 100644
--- a/src/gallium/auxiliary/util/u_surfaces.c
+++ b/src/gallium/auxiliary/util/u_surfaces.c
@@ -22,7 +22,7 @@ struct pipe_surface *
util_surfaces_do_get(struct util_surfaces *us, unsigned surface_struct_size, struct pipe_screen *pscreen, struct pipe_resource *pt, unsigned face, unsigned level, unsigned zslice, unsigned flags)
{
struct pipe_surface *ps;
- void *key;
+ void *key = NULL;
if(pt->target == PIPE_TEXTURE_3D || pt->target == PIPE_TEXTURE_CUBE)
{ /* or 2D array */