mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 01:30:25 +01:00
mesa: Correct backwards NULL check.
Cc: "10.4, 10.5" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 491d42135a)
This commit is contained in:
parent
a369361f9e
commit
644bbf88ec
1 changed files with 1 additions and 1 deletions
|
|
@ -1696,7 +1696,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;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue