Build bustage fix, bug 519357. I hate compilers.

This commit is contained in:
Benjamin Smedberg 2009-11-05 09:22:45 -05:00
parent 1ead4f5856
commit 105915805e

View File

@ -2987,7 +2987,7 @@ nsComponentManagerImpl::AutoRegisterComponentsList(nsIFile* inDir,
if (PR_SUCCESS != PR_GetOpenFileInfo(fd, &info))
return NS_ErrorAccordingToNSPR();
nsAutoArrayPtr<char> buf = new char[info.size + 1];
nsAutoArrayPtr<char> buf(new char[info.size + 1]);
if (!buf)
return NS_ERROR_OUT_OF_MEMORY;