1
0
Fork 0

Avoid SIGSEGV in fgfs-tools-client when the results file is not found.

This commit is contained in:
Ralf Gerlich 2008-01-02 23:55:13 -08:00
parent cf04dd3135
commit 0a32b5f3bc

View file

@ -286,6 +286,10 @@ bool construct_tile( const SGBucket& b,
system( command.c_str() );
FILE *fp = fopen( result_file.c_str(), "r" );
if ( fp == NULL) {
cout << "Missing results file " << result_file << endl;
return false;
}
char line[256];
while ( fgets( line, 256, fp ) != NULL ) {
string line_str = line;