summaryrefslogtreecommitdiff
path: root/indra/newview/llagentpilot.cpp
diff options
context:
space:
mode:
authorAaron Brashears <aaronb@lindenlab.com>2007-02-02 17:28:58 +0000
committerAaron Brashears <aaronb@lindenlab.com>2007-02-02 17:28:58 +0000
commit305c74d5163c5e344a675d39ca2394a9e45bd2c2 (patch)
tree42836c4a6010b2b015156024d3cfb6bf64a48ad6 /indra/newview/llagentpilot.cpp
parent54d89549df38bb61881583a3eb8d3645c107d79f (diff)
Result of svn merge -r57264:57370 svn+ssh://svn/svn/linden/branches/adroit.r40-68 into release.
Diffstat (limited to 'indra/newview/llagentpilot.cpp')
-rw-r--r--indra/newview/llagentpilot.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llagentpilot.cpp b/indra/newview/llagentpilot.cpp
index 2a6353fe2e..605718d40b 100644
--- a/indra/newview/llagentpilot.cpp
+++ b/indra/newview/llagentpilot.cpp
@@ -36,13 +36,14 @@ LLAgentPilot::~LLAgentPilot()
void LLAgentPilot::load(const char *filename)
{
- llifstream file;
+ if(!filename) return;
- file.open(filename);
+ llifstream file(filename);
if (!file)
{
- llinfos << "Couldn't open " << filename << ", aborting agentpilot load!" << llendl;
+ lldebugs << "Couldn't open " << filename
+ << ", aborting agentpilot load!" << llendl;
return;
}
else
@@ -71,7 +72,7 @@ void LLAgentPilot::load(const char *filename)
void LLAgentPilot::save(const char *filename)
{
llofstream file;
- file.open(filename);
+ file.open(filename); /*Flawfinder: ignore*/
if (!file)
{