Commit 6e82c512 authored by miller86's avatar miller86
Browse files

only trigger empty domain name exception when !ifile.eof()

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@9550 18c085ea-50e0-402c-830e-de6fd14e8384
parent 27cac6cb
......@@ -234,6 +234,10 @@ avtRAWFileFormat::NewPD(int nCells)
// Make sure scanf succeeded in strict mode.
// Throw exception on a bad domain name in strict mode.
//
// Mark C. Miller, Thu Jan 21 17:57:43 PST 2010
// Made it handle case of file with data but no domain name by tightening
// logic on exception for empty to domain name to trigger only when
// ifile.eof() is not true.
// ****************************************************************************
void
......@@ -362,7 +366,7 @@ avtRAWFileFormat::ReadFile(const char *name)
else
{
debug4 << mName << "Empty domain name" << endl;
if (GetStrictMode())
if (GetStrictMode() && !ifile.eof())
{
EXCEPTION2(InvalidFilesException, GetFilename(),
"Empty domain name.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment