From 83a5b7e4689dcc36789f567847ccf65db858a9f3 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 22 Feb 2010 23:49:50 -0800 Subject: glsl/apps: Assert that ftell does not return an error. --- src/glsl/apps/process.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl/apps/process.c') diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c index e65f35cc00b..c8a1a1868cc 100644 --- a/src/glsl/apps/process.c +++ b/src/glsl/apps/process.c @@ -58,6 +58,7 @@ main(int argc, fseek(in, 0, SEEK_END); size = ftell(in); + assert(size != -1); fseek(in, 0, SEEK_SET); out = fopen(argv[2], "wb"); -- cgit v1.2.3