diff options
author | Kenneth Graunke <[email protected]> | 2011-02-01 23:31:35 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-02-01 23:31:35 -0800 |
commit | cfd8d45ccde3252fd9a27fe0b2031a35f437a6a2 (patch) | |
tree | e5b64879c6fa19eed858e742e17a6e51ccc25aad /src/glsl/ast_function.cpp | |
parent | 8ca3b140eb53fd8063337a5a2a54a35987d597bc (diff) |
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.
Diffstat (limited to 'src/glsl/ast_function.cpp')
-rw-r--r-- | src/glsl/ast_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 28d49ee0dae..7611617df7e 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -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); |