diff options
author | Vinson Lee <[email protected]> | 2012-05-16 23:44:53 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2012-05-17 21:59:08 -0700 |
commit | e8a86d36f3b007ae6fca9353a3a4cda1456ae1d4 (patch) | |
tree | 08234b2e95da601446146818e4db559ae588f1f4 /src/gallium/auxiliary | |
parent | c20e7417992380871261699c2b0123819e7d51fc (diff) |
gallium/tgsi/text: Ensure ret is initialized in parse_immediate_data.
Fix uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_text.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index 279a046e202..f2bf49e9f88 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_text.c +++ b/src/gallium/auxiliary/tgsi/tgsi_text.c @@ -1007,6 +1007,10 @@ static boolean parse_immediate_data(struct translate_ctx *ctx, unsigned type, case TGSI_IMM_INT32: ret = parse_int(&ctx->cur, &values[i].Int); break; + default: + assert(0); + ret = FALSE; + break; } if (!ret) { |