Commit 1a31939f authored by Alejandro Piñeiro's avatar Alejandro Piñeiro

run: set NULL as initial value for binding_list

Without it, under some specific compilation options, it can be
initialized to NULL or to garbage. On the latter case, if the shader
doesn't require a binding_list, would cause a crash later when it
attempts to be used.
Reviewed-by: Timothy Arceri's avatarTimothy Arceri <tarceri@itsqueeze.com>
parent 20372b4d
......@@ -840,7 +840,7 @@ main(int argc, char **argv)
enum shader_type type;
unsigned num_shaders;
bool use_separate_shader_objects;
struct binding_list *binding;
struct binding_list *binding = NULL;
struct shader *shader = get_shaders(&core, &compat, &es,
text, shader_test[i].filesize,
&type, &num_shaders,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment