mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
bug 42704 missing initialization in nsLocalFile::GetFileSize, r=dougt/sr=mscott
This commit is contained in:
parent
f78b82e80e
commit
73ea080f9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user