diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp index 95bf5b0b0f03..628e2bd1fe07 100644 --- a/xpcom/io/nsLocalFileUnix.cpp +++ b/xpcom/io/nsLocalFileUnix.cpp @@ -453,8 +453,7 @@ nsLocalFile::AppendRelativePath(const char *fragment) if (*fragment == '/') return NS_ERROR_FILE_UNRECOGNIZED_PATH; - mPath.Assign(mPath + NS_LITERAL_CSTRING("/") + - nsDependentCString(fragment)); + mPath.Append(NS_LITERAL_CSTRING("/") + nsDependentCString(fragment)); if (!mPath.get()) return NS_ERROR_OUT_OF_MEMORY;