From 1951e2c1903fed51cd0906f380d96e6be01df93d Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Mon, 31 Jan 2000 23:06:04 +0000 Subject: [PATCH] Initializing return values before they are used. git-svn-id: svn://10.0.0.236/trunk@59297 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsLocalFileMac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/io/nsLocalFileMac.cpp b/mozilla/xpcom/io/nsLocalFileMac.cpp index 7df782e592d..d6ebf080b4d 100644 --- a/mozilla/xpcom/io/nsLocalFileMac.cpp +++ b/mozilla/xpcom/io/nsLocalFileMac.cpp @@ -366,7 +366,7 @@ class nsDirEnumerator : public nsISimpleEnumerator NS_IMETHOD HasMoreElements(PRBool *result) { - nsresult rv; + nsresult rv = NS_OK; if (mNext == nsnull && mDir) { char* name = My_ReadDir(mDir, PR_SKIP_BOTH); @@ -408,7 +408,7 @@ class nsDirEnumerator : public nsISimpleEnumerator NS_IMETHOD GetNext(nsISupports **result) { - nsresult rv; + nsresult rv = NS_OK; PRBool hasMore; rv = HasMoreElements(&hasMore); if (NS_FAILED(rv)) return rv;