From: Matt Turner Date: Sat, 28 Feb 2015 19:14:02 +0000 (-0800) Subject: mesa: Correct backwards NULL check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=491d42135ad0e5670756216154f2ba9fc79d4ba7;p=mesa.git mesa: Correct backwards NULL check. Cc: "10.4, 10.5" Reviewed-by: Emil Velikov Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index dd536cd07d2..5731d581a9d 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;