don't rely on stream cast to bool behavior; use explicit fail call.

meow-7.2.2
Andrew A. de Laix 2010-12-17 11:35:26 -08:00
parent 049815bd52
commit 6a6757cab4
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ bool LLUpdaterServiceImpl::onMainLoop(LLSD const & event)
{
llifstream stream(ll_install_failed_marker_path());
stream >> requiredValue;
if(!stream) requiredValue = 0;
if(stream.fail()) requiredValue = 0;
}
// TODO: notify the user.
llinfos << "found marker " << ll_install_failed_marker_path() << llendl;