summaryrefslogtreecommitdiff
path: root/indra/viewer_components/updater
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2010-12-17 11:35:26 -0800
committerAndrew A. de Laix <alain@lindenlab.com>2010-12-17 11:35:26 -0800
commit6a6757cab4e96d2567a436fc3b373d96716a685a (patch)
tree2f003cbf61aceb5b6948c9ede16af691dcd7589b /indra/viewer_components/updater
parent049815bd528daaa7d9f09043304c4dc6f4a030f0 (diff)
don't rely on stream cast to bool behavior; use explicit fail call.
Diffstat (limited to 'indra/viewer_components/updater')
-rw-r--r--indra/viewer_components/updater/llupdaterservice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/viewer_components/updater/llupdaterservice.cpp b/indra/viewer_components/updater/llupdaterservice.cpp
index 08f76c26e9..aa4983a3b6 100644
--- a/indra/viewer_components/updater/llupdaterservice.cpp
+++ b/indra/viewer_components/updater/llupdaterservice.cpp
@@ -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;