diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp index d04fbd360b0..7172ca146ce 100644 --- a/src/compiler/glsl_types.cpp +++ b/src/compiler/glsl_types.cpp @@ -178,7 +178,7 @@ glsl_type::glsl_type(const glsl_type *return_type, this->mem_ctx = ralloc_context(NULL); assert(this->mem_ctx != NULL); - this->name = ralloc_strdup(this->mem_ctx, ""); + this->name = ""; this->fields.parameters = rzalloc_array(this->mem_ctx, glsl_function_param, num_params + 1);