Fix defect reported by Coverity Scan.
Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member name is not initialized in
this constructor nor in any functions that it calls.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7766>
this->mem_ctx = ralloc_context(NULL);
assert(this->mem_ctx != NULL);
+ this->name = ralloc_strdup(this->mem_ctx, "");
+
this->fields.parameters = rzalloc_array(this->mem_ctx,
glsl_function_param, num_params + 1);