glcpp: Fix segfault in standalone preprocessor for "file not found", etc.
authorCarl Worth <cworth@cworth.org>
Mon, 23 Aug 2010 16:42:14 +0000 (09:42 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Aug 2010 17:48:10 +0000 (10:48 -0700)
commitcf8bb19a114d753bca94f920b87dcf51aa26af99
treedf6fb74db01afc75a043e7bffa17eca99c0d503e
parenteab206510fc76407ee8b18aacafadd0d5406e483
glcpp: Fix segfault in standalone preprocessor for "file not found", etc.

This error message was missing so that the program would simply
segfault if the provided filename could not be opened for some reason.

While we're at it, we add explicit support for a filename of "-" to
indicate input from stdin.
src/glsl/glcpp/glcpp.c