bug 42704 missing initialization in nsLocalFile::GetFileSize, r=dougt/sr=mscott

This commit is contained in:
dveditz%netscape.com 2001-02-07 00:14:33 +00:00
parent f78b82e80e
commit 73ea080f9d

View File

@ -924,6 +924,7 @@ NS_IMETHODIMP
nsLocalFile::GetFileSize(PRInt64 *aFileSize)
{
NS_ENSURE_ARG_POINTER(aFileSize);
*aFileSize = LL_ZERO;
VALIDATE_STAT_CACHE();
#if defined(VMS)
@ -935,9 +936,7 @@ nsLocalFile::GetFileSize(PRInt64 *aFileSize)
#endif
/* XXX autoconf for and use stat64 if available */
if (S_ISDIR(mCachedStat.st_mode)) {
*aFileSize = LL_ZERO;
} else {
if (!S_ISDIR(mCachedStat.st_mode)) {
LL_UI2L(*aFileSize, (PRUint32)mCachedStat.st_size);
}
return NS_OK;