check for NULL ptr in _mesa_print_parameter_list()
authorBrian <brian.paul@tungstengraphics.com>
Tue, 30 Oct 2007 17:14:33 +0000 (11:14 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 30 Oct 2007 17:32:53 +0000 (11:32 -0600)
src/mesa/shader/prog_print.c

index c421b1228bcfa8819aa81bb886a679f0b458549e..f410a9099e27c6b7aa3c53fd4ee6567fd54937c5 100644 (file)
@@ -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;