From 8234935b658c99b829564f75a2c7840a1301ca36 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 30 Oct 2007 11:14:33 -0600 Subject: [PATCH] check for NULL ptr in _mesa_print_parameter_list() --- src/mesa/shader/prog_print.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index c421b1228bc..f410a9099e2 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -753,6 +753,9 @@ _mesa_print_parameter_list(const struct gl_program_parameter_list *list) const gl_prog_print_mode mode = PROG_PRINT_DEBUG; GLuint i; + if (!list) + return; + _mesa_printf("param list %p\n", (void *) list); for (i = 0; i < list->NumParameters; i++){ struct gl_program_parameter *param = list->Parameters + i; -- 2.30.2