summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c')
-rw-r--r--tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c b/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c
index 362b48ca9..790fdb722 100644
--- a/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c
+++ b/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c
@@ -185,7 +185,7 @@ piglit_init(int argc, char **argv)
prog = glCreateProgram();
vs = piglit_compile_shader_text(GL_VERTEX_SHADER, vs_text);
glAttachShader(prog, vs);
- asprintf(&gs_text, gs_template, input_layout);
+ (void)!asprintf(&gs_text, gs_template, input_layout);
gs = piglit_compile_shader_text(GL_GEOMETRY_SHADER, gs_text);
free(gs_text);
glAttachShader(prog, gs);