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 e2a2bb6..36cc578 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;