Fixing hpux bustage. r=dbaron.

git-svn-id: svn://10.0.0.236/trunk@154442 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2004-04-01 23:13:25 +00:00
parent 6cf354b3a0
commit a35df343bc

View File

@@ -745,10 +745,12 @@ nsLocalFile::CopyToNative(nsIFile *newParent, const nsACString &newName)
#endif
// actually create the file.
nsCOMPtr<nsLocalFile> newFile = new nsLocalFile();
nsLocalFile *newFile = new nsLocalFile();
if (!newFile)
return NS_ERROR_OUT_OF_MEMORY;
nsCOMPtr<nsILocalFile> fileRef(newFile); // release on exit
rv = newFile->InitWithNativePath(newPathName);
if (NS_FAILED(rv))
return rv;