summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2019-11-12 14:43:19 -0500
committerNat Goodspeed <nat@lindenlab.com>2020-03-25 19:06:13 -0400
commit9c315851a3e1451b151f7d6d3e8bf93791c39f80 (patch)
tree3aa8f04e46ca1cf84e13ada36e307a1454e223d7
parent5918620426fd81944e6d3eb2a866d2104ad4ae69 (diff)
DRTVWR-476: Always clear both fields even if mOrigTarget invalid.
-rw-r--r--indra/llcommon/lltempredirect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llcommon/lltempredirect.cpp b/indra/llcommon/lltempredirect.cpp
index 1ae3116b77..ec194c1d29 100644
--- a/indra/llcommon/lltempredirect.cpp
+++ b/indra/llcommon/lltempredirect.cpp
@@ -122,11 +122,11 @@ void LLTempRedirect::reset()
fhdup2(mOrigTarget, mReference);
// mOrigTarget has served its purpose
fhclose(mOrigTarget);
- // assign these because reset() is also responsible for a "moved from"
- // instance
- mOrigTarget = -1;
- mReference = -1;
}
+ // assign these because reset() is also responsible for a "moved from"
+ // instance
+ mOrigTarget = -1;
+ mReference = -1;
}
LLTempRedirect& LLTempRedirect::operator=(LLTempRedirect&& other)