summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_process.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-15 00:30:31 -0800
committerVinson Lee <vlee@vmware.com>2010-02-15 00:30:31 -0800
commitf0e1499805eb98e4d6dfe4f95f601593c65044d6 (patch)
tree61383eb6d6329dcd3e41881fbc5fbf93f1e48b04 /src/glsl/pp/sl_pp_process.c
parent6536cdf1836a302d334f7380d1723e8f0bc396be (diff)
glsl/pp: Add asserts to check for null pointer deferences.
Diffstat (limited to 'src/glsl/pp/sl_pp_process.c')
-rw-r--r--src/glsl/pp/sl_pp_process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_process.c b/src/glsl/pp/sl_pp_process.c
index f89986dd8ef..315ad9bf1cd 100644
--- a/src/glsl/pp/sl_pp_process.c
+++ b/src/glsl/pp/sl_pp_process.c
@@ -87,6 +87,7 @@ sl_pp_process_get(struct sl_pp_context *context,
int found_eof = 0;
if (context->process_state.out_len) {
+ assert(context->process_state.out);
*output = context->process_state.out[0];
if (context->process_state.out_len > 1) {