summaryrefslogtreecommitdiffstats
path: root/src/glsl/apps/purify.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-07-15 18:45:20 -0700
committerVinson Lee <[email protected]>2010-07-15 18:45:20 -0700
commit643f5ea1e0402d05e71d4f0340ea8f29042b8c79 (patch)
treee7c26f796ec244988ec13a4863c60c2687d5ae30 /src/glsl/apps/purify.c
parent5824fbf6748493529a9ca34606dc4764b96a7319 (diff)
glsl/apps: Handle ftell errors in non-debug builds.
Diffstat (limited to 'src/glsl/apps/purify.c')
-rw-r--r--src/glsl/apps/purify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/apps/purify.c b/src/glsl/apps/purify.c
index 5ab6bae96d1..0f09b157efd 100644
--- a/src/glsl/apps/purify.c
+++ b/src/glsl/apps/purify.c
@@ -58,6 +58,9 @@ main(int argc,
fseek(in, 0, SEEK_END);
size = ftell(in);
assert(size != -1);
+ if (size == -1) {
+ return 1;
+ }
fseek(in, 0, SEEK_SET);
out = fopen(argv[2], "wb");