mesa: Ensure that length is set to zero in _mesa_GetProgramBinary
authorIan Romanick <ian.d.romanick@intel.com>
Sun, 21 Dec 2014 20:03:57 +0000 (12:03 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sun, 11 Jan 2015 23:01:06 +0000 (12:01 +1300)
commit4fd8b3012371a5795a0d272928266c6237e57466
treeca02c5391a9bc8e92773b6c5580c9e8ddf915dce
parent201b9c181825551559f6d995007de8ff12d1a54c
mesa: Ensure that length is set to zero in _mesa_GetProgramBinary

v2: Fix assignment of length.  Noticed by Julien Cristau.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87516
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Leight Bade <leith@mapbox.com>
src/mesa/main/shaderapi.c