Permalink
Browse files

Abort if input file cannot be read

  • Loading branch information...
swesonga committed Sep 18, 2011
1 parent f73e6f2 commit 57b66a8321c04260d3ae392b3d15af9b328285ba
Showing with 4 additions and 0 deletions.
  1. +4 −0 cplot/cplot.cpp
View
@@ -63,6 +63,10 @@ int main(int argc, char *argv[]){
return 0;
}
in = fopen( argv[1], "r" );
if (in == NULL) {
printf("ERROR: cannot open %s.\n", argv[1]);
return 0;
}
if (argc < 3){
initps("output.eps");

0 comments on commit 57b66a8

Please sign in to comment.