From 00a2b10e79f123878ca14779739d15584e03e734 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Tue, 15 Jun 1999 06:24:34 +0000 Subject: [PATCH] Moving worked declaration to the beginning of function to get around goto error. Fixes linux bustage. --- modules/libpref/src/nsPref.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/libpref/src/nsPref.cpp b/modules/libpref/src/nsPref.cpp index e7720b21c715..051ab2cbfca4 100644 --- a/modules/libpref/src/nsPref.cpp +++ b/modules/libpref/src/nsPref.cpp @@ -1322,6 +1322,7 @@ extern "C" JSBool pref_InitInitialObjects() { JSBool funcResult; nsresult rv; + JSBool worked = PR_FALSE; NS_WITH_SERVICE(nsIFileLocator, locator, kFileLocatorCID, &rv); if (NS_FAILED(rv)) return JS_TRUE; @@ -1359,7 +1360,7 @@ extern "C" JSBool pref_InitInitialObjects() funcResult = JS_FALSE; goto done; } - JSBool worked = (JSBool)(pref_OpenFileSpec( + worked = (JSBool)(pref_OpenFileSpec( specialChild, PR_FALSE, PR_FALSE,