st/xorg: Make sure struct is fully initialized.
authorMichel Dänzer <daenzer@vmware.com>
Fri, 25 Sep 2009 18:49:00 +0000 (20:49 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Fri, 25 Sep 2009 18:49:00 +0000 (20:49 +0200)
gcc complained about a missing initializer.

src/gallium/state_trackers/xorg/xorg_exa_tgsi.c

index 28954dc6f63684a2c09cd351ef92281d97c7ddcf..bb5a42af37e8198f05936f7029efa924bf54cb5d 100644 (file)
@@ -465,7 +465,7 @@ struct xorg_shader xorg_shaders_get(struct xorg_shaders *sc,
                                     unsigned vs_traits,
                                     unsigned fs_traits)
 {
-   struct xorg_shader shader = {0};
+   struct xorg_shader shader = { NULL, NULL };
    void *vs, *fs;
 
    vs = shader_from_cache(sc->exa->pipe, PIPE_SHADER_VERTEX,