[Mesa-stable] [PATCH] mesa: Correct backwards NULL check.
Matt Turner
mattst88 at gmail.com
Sat Feb 28 11:15:28 PST 2015
Cc: "10.4, 10.5" <mesa-stable at lists.freedesktop.org>
---
src/mesa/main/shaderapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index dd536cd..5731d58 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1739,7 +1739,7 @@ _mesa_GetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length,
* Ensure that length always points to valid storage to avoid multiple NULL
* pointer checks below.
*/
- if (length != NULL)
+ if (length == NULL)
length = &length_dummy;
--
2.0.5
More information about the mesa-stable
mailing list