summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/pp/sl_pp_context.c')
-rw-r--r--src/glsl/pp/sl_pp_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_context.c b/src/glsl/pp/sl_pp_context.c
index 88a002c1c73..b196d8102a0 100644
--- a/src/glsl/pp/sl_pp_context.c
+++ b/src/glsl/pp/sl_pp_context.c
@@ -85,6 +85,7 @@ sl_pp_context_add_unique_str(struct sl_pp_context *context,
}
if (!context->cstr_pool) {
+ strcpy(context->error_msg, "out of memory");
return -1;
}