Bug fix: missing mode in allocator. Valerio Novaresio

This commit is contained in:
Hrvoje Jasak 2011-09-19 12:05:13 +01:00
parent 1d2a05fc33
commit 63f0794020

View file

@ -61,7 +61,7 @@ Foam::OFstreamAllocator::OFstreamAllocator
rm(pathname);
}
ofPtr_ = new ogzstream((pathname + ".gz").c_str());
ofPtr_ = new ogzstream((pathname + ".gz").c_str(), mode);
}
else
{
@ -71,7 +71,7 @@ Foam::OFstreamAllocator::OFstreamAllocator
rm(pathname + ".gz");
}
ofPtr_ = new ofstream(pathname.c_str());
ofPtr_ = new ofstream(pathname.c_str(), mode);
}
}