summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-20 14:20:15 -0800
committerVinson Lee <vlee@vmware.com>2009-11-20 14:20:15 -0800
commit36e2074b63e3e5bc489eb74cad0cd97eafcedb40 (patch)
tree97da3f430914d44be808814703b68c8e9efb78d4
parent5109484bd9cd79ed88af59280bd0be5a4150f37c (diff)
gallium/util: Initialize variables in u_pack_color.h.
-rw-r--r--src/gallium/auxiliary/util/u_pack_color.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_pack_color.h b/src/gallium/auxiliary/util/u_pack_color.h
index eda883b3b92..9dacc6d83db 100644
--- a/src/gallium/auxiliary/util/u_pack_color.h
+++ b/src/gallium/auxiliary/util/u_pack_color.h
@@ -302,7 +302,10 @@ util_unpack_color_ub(enum pipe_format format, const void *src,
static INLINE void
util_pack_color(const float rgba[4], enum pipe_format format, void *dest)
{
- ubyte r, g, b, a;
+ ubyte r = 0;
+ ubyte g = 0;
+ ubyte b = 0;
+ ubyte a = 0;
if (pf_size_x(format) <= 8) {
/* format uses 8-bit components or less */