don't rely on stream cast to bool behavior; use explicit fail call.
parent
049815bd52
commit
6a6757cab4
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue