nir: silence uninitialized warning
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 11 Dec 2015 00:07:14 +0000 (11:07 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 11 Dec 2015 08:26:20 +0000 (19:26 +1100)
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/glsl/nir/nir_lower_clip.c

index e2a2bb689a8cbf886368e2efd4a0fba0082693cc..36cc578d1edf725e61734e523c572789041eacce 100644 (file)
@@ -217,7 +217,7 @@ nir_lower_clip_vs(nir_shader *shader, unsigned ucp_enables)
    int position = -1;
    int maxloc = -1;
    nir_ssa_def *cv;
-   nir_variable *out[2];
+   nir_variable *out[2] = { NULL };
 
    if (!ucp_enables)
       return;