glsl2: Use talloc_zero_size instead of talloc_size to allocate ast_node objects.
[mesa.git] / src / glsl / ast.h
index 1de285bb46102f61e463cda9f54441078ba8b795..7ce879bb79ddea2897e5f6b97a20205882a1d1ed 100644 (file)
@@ -42,7 +42,7 @@ public:
    {
       void *node;
 
-      node = talloc_size(ctx, size);
+      node = talloc_zero_size(ctx, size);
       assert(node != NULL);
 
       return node;