summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-02-28 11:14:02 -0800
committerEmil Velikov <[email protected]>2015-03-07 17:20:53 +0000
commit446aa309e18e0c5a6335d7dd9688a4e521d29043 (patch)
tree30cf2a0f5ecc9c62873a4bdb754176a1280c826d /src/mesa/main
parent4c45e239385473da58d79100b0af25bd0b9edf9c (diff)
mesa: Correct backwards NULL check.
Cc: "10.4, 10.5" <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 491d42135ad0e5670756216154f2ba9fc79d4ba7)
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/shaderapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 52eab46551b..dad61f4a656 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1713,7 +1713,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;