ralloc: use rzalloc where it's necessary
[mesa.git] / src / compiler / glsl / ast_to_hir.cpp
index a9a1ba3c48cdec20ec5ba0f9470f38484503bc13..24067b6ac0c5eadacfe3923209b9f9147f41a387 100644 (file)
@@ -6639,8 +6639,8 @@ ast_process_struct_or_iface_block_members(exec_list *instructions,
     * the types to HIR.  This ensures that structure definitions embedded in
     * other structure definitions or in interface blocks are processed.
     */
-   glsl_struct_field *const fields = ralloc_array(state, glsl_struct_field,
-                                                  decl_count);
+   glsl_struct_field *const fields = rzalloc_array(state, glsl_struct_field,
+                                                   decl_count);
 
    bool first_member = true;
    bool first_member_has_explicit_location = false;