projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
glsl/apps: Assert that ftell does not return an error.
[mesa.git]
/
src
/
glsl
/
apps
/
compile.c
diff --git
a/src/glsl/apps/compile.c
b/src/glsl/apps/compile.c
index 3b3c083c2e131e651c6fae91e570b055f591fc79..21c2b7617e93b7197ffc44f4103682f2c67e5769 100644
(file)
--- a/
src/glsl/apps/compile.c
+++ b/
src/glsl/apps/compile.c
@@
-79,6
+79,7
@@
main(int argc,
fseek(in, 0, SEEK_END);
size = ftell(in);
+ assert(size != -1);
fseek(in, 0, SEEK_SET);
out = fopen(argv[3], "w");