[tor-commits] [tor-browser/tor-browser-83.0b1-10.0-1] fixup! Bug 13252: Do not store data in the app bundle

sysrqb at torproject.org sysrqb at torproject.org
Thu Oct 29 14:19:25 UTC 2020


commit 136d1345a7953f89c5b4998a7544045cd9c68d51
Author: Alex Catarineu <acat at torproject.org>
Date:   Wed Oct 28 15:24:34 2020 +0100

    fixup! Bug 13252: Do not store data in the app bundle
    
    Fixes 40205: Replace occurrence of EmptyCString with 0-length _ns literal
---
 xpcom/io/TorFileUtils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xpcom/io/TorFileUtils.cpp b/xpcom/io/TorFileUtils.cpp
index ce75ab1e1c07..6bd03f1f7fed 100644
--- a/xpcom/io/TorFileUtils.cpp
+++ b/xpcom/io/TorFileUtils.cpp
@@ -71,7 +71,7 @@ nsresult TorBrowser_GetUserDataDir(nsIFile* aExeFile, nsIFile** aFile) {
     // points to ~/Library/Application Support, we first create an empty
     // nsIFile object (no path) and then use InitWithFSRef() to set the
     // path.
-    rv = NS_NewNativeLocalFile(EmptyCString(), true, getter_AddRefs(tbDataDir));
+    rv = NS_NewNativeLocalFile(""_ns, true, getter_AddRefs(tbDataDir));
     NS_ENSURE_SUCCESS(rv, rv);
     nsCOMPtr<nsILocalFileMac> dirFileMac = do_QueryInterface(tbDataDir);
     if (!dirFileMac) return NS_ERROR_UNEXPECTED;



More information about the tor-commits mailing list