glsl: Fix invalid use of ralloc_asprintf in prototype_string.
This was my mistake when converting from talloc to ralloc. I was confused because the other calls in the function are to asprintf_append and the original code used str as the context rather than NULL. Fixes bug #33823.
This commit is contained in:
parent
8ca3b140eb
commit
cfd8d45ccd
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ prototype_string(const glsl_type *return_type, const char *name,
|
|||
char *str = NULL;
|
||||
|
||||
if (return_type != NULL)
|
||||
ralloc_asprintf(&str, "%s ", return_type->name);
|
||||
str = ralloc_asprintf(NULL, "%s ", return_type->name);
|
||||
|
||||
ralloc_asprintf_append(&str, "%s(", name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue