[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 136d1345a7953f89c5b4998a7544045cd9c68d51
Author: Alex Catarineu <acat@xxxxxxxxxxxxxx>
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;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits