glsl: initialise pointer to NULL
authorJakob Sinclair <sinclair.jakob@openmailbox.org>
Fri, 3 Jun 2016 23:09:52 +0000 (01:09 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 7 Jun 2016 06:13:25 +0000 (08:13 +0200)
commitb450f29073c4129896fce37699ef3d7f152ed458
treefe9617ede87de475e8cc1b9d8b1246507f31063e
parentc295923d139b2c2daf169c94d9edcca23527289b
glsl: initialise pointer to NULL

Could cause issues if you tried to read from an uninitialised pointer.
This just initalises the pointer to null to avoid that being a problem.
Discovered by Coverity.

CID: 1343616

Signed-off-by: Jakob Sinclair <sinclair.jakob@openmailbox.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/glsl_parser_extras.cpp