mesa: fix uninitialized var
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 22 Jul 2008 23:38:55 +0000 (17:38 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Jul 2008 23:20:22 +0000 (17:20 -0600)
src/mesa/shader/slang/slang_compile_struct.c

index 97a34d24fe056758c601708bd007c99293a8e63b..96bdb1f49106e969960d4cc1a7828ed108da2b4d 100644 (file)
@@ -115,6 +115,7 @@ slang_struct_construct(slang_struct * stru)
       return 0;
    }
    _slang_struct_scope_ctr(stru->structs);
+   stru->constructor = NULL;
    return 1;
 }