diff --git a/xpcom/build/LateWriteChecks.cpp b/xpcom/build/LateWriteChecks.cpp index 8ef30a567093..1dbe7110fe39 100644 --- a/xpcom/build/LateWriteChecks.cpp +++ b/xpcom/build/LateWriteChecks.cpp @@ -133,8 +133,7 @@ LateWriteObserver::Observe(IOInterposeObserver::Observation& aOb) nsTAutoString nameAux(mProfileDirectory); nameAux.AppendLiteral(NS_SLASH "Telemetry.LateWriteTmpXXXXXX"); - char_type* name; - nameAux.GetMutableData(&name); + char_type* name = nameAux.BeginWriting(); // We want the sha1 of the entire file, so please don't write to fd // directly; use sha1Stream.