Mesa (mesa_7_7_branch): svga: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Thu Jan 7 01:51:52 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: 468f270f3fc0efc136d03d0b6022916ddd8ea893
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=468f270f3fc0efc136d03d0b6022916ddd8ea893

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Jan  6 17:51:08 2010 -0800

svga: Silence uninitialized variable warning.

---

 src/gallium/drivers/svga/svga_state_fs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_state_fs.c b/src/gallium/drivers/svga/svga_state_fs.c
index 272d1dd..44bb58c 100644
--- a/src/gallium/drivers/svga/svga_state_fs.c
+++ b/src/gallium/drivers/svga/svga_state_fs.c
@@ -67,7 +67,7 @@ static enum pipe_error compile_fs( struct svga_context *svga,
                                    struct svga_shader_result **out_result )
 {
    struct svga_shader_result *result;
-   enum pipe_error ret;
+   enum pipe_error ret = PIPE_ERROR;
 
    result = svga_translate_fragment_program( fs, key );
    if (result == NULL) {




More information about the mesa-commit mailing list