summaryrefslogtreecommitdiffstats
path: root/src/glsl/apps/purify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/apps/purify.c')
-rw-r--r--src/glsl/apps/purify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsl/apps/purify.c b/src/glsl/apps/purify.c
index 53ba2530225..8c01f4fc6a3 100644
--- a/src/glsl/apps/purify.c
+++ b/src/glsl/apps/purify.c
@@ -40,6 +40,8 @@ main(int argc,
char *inbuf;
struct sl_pp_purify_options options;
char *outbuf;
+ char errmsg[100] = "";
+ unsigned int errline = 0;
FILE *out;
if (argc != 3) {
@@ -84,8 +86,8 @@ main(int argc,
memset(&options, 0, sizeof(options));
- if (sl_pp_purify(inbuf, &options, &outbuf)) {
- fprintf(out, "$PURIFYERROR\n");
+ if (sl_pp_purify(inbuf, &options, &outbuf, errmsg, sizeof(errmsg), &errline)) {
+ fprintf(out, "$PURIFYERROR %u: %s\n", errline, errmsg);
free(inbuf);
fclose(out);