diff options
Diffstat (limited to 'src/glsl/apps/purify.c')
-rw-r--r-- | src/glsl/apps/purify.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/apps/purify.c b/src/glsl/apps/purify.c index 5ab6bae96d..0f09b157ef 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"); |