summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/prog_print.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-30 11:14:33 -0600
committerBrian <[email protected]>2007-10-30 11:32:53 -0600
commit8234935b658c99b829564f75a2c7840a1301ca36 (patch)
treeb994dc2a3ada0ce5ca002ffd2b9f9fa4cef70d2b /src/mesa/shader/prog_print.c
parentba0fcc47d61be6caa2f4a5f4eb0c36eba9e2cb59 (diff)
check for NULL ptr in _mesa_print_parameter_list()
Diffstat (limited to 'src/mesa/shader/prog_print.c')
-rw-r--r--src/mesa/shader/prog_print.c3
1 files changed, 3 insertions, 0 deletions
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;