rbug: Silence warning
authorJakob Bornecrantz <jakob@vmware.com>
Mon, 9 Jan 2012 13:53:42 +0000 (14:53 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 11 Jan 2012 20:53:23 +0000 (21:53 +0100)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by Brian Paul <brianp@vmware.com>

src/gallium/drivers/rbug/rbug_core.c

index b80bcd4228fee5357546220f6b8df26a4070f3b4..253d21bbc1e7cfe801345783fb8d4515cd56d299 100644 (file)
@@ -104,7 +104,8 @@ rbug_shader_create_locked(struct pipe_context *pipe,
                           struct tgsi_token *tokens)
 {
    void *state = NULL;
-   struct pipe_shader_state pss = { 0 };
+   struct pipe_shader_state pss;
+   memset(&pss, 0, sizeof(pss));
    pss.tokens = tokens;
 
    switch(rb_shader->type) {