projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c20e741
)
gallium/tgsi/text: Ensure ret is initialized in parse_immediate_data.
author
Vinson Lee
<vlee@freedesktop.org>
Thu, 17 May 2012 06:44:53 +0000
(23:44 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Fri, 18 May 2012 04:59:08 +0000
(21:59 -0700)
Fix uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_text.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_text.c
b/src/gallium/auxiliary/tgsi/tgsi_text.c
index 279a046e202c6d6d8b2b132abc49157477a21d11..f2bf49e9f883127a3455a9353b86cc03d7aaa89b 100644
(file)
--- 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) {