Moving worked declaration to the beginning of function to get around goto error. Fixes linux bustage.

This commit is contained in:
mcafee%netscape.com 1999-06-15 06:24:34 +00:00
parent 8eae23158b
commit 00a2b10e79

View File

@ -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,