quell assignment-as-boolean warning
git-svn-id: svn://10.0.0.236/trunk@46047 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -358,7 +358,7 @@ nsScriptSecurityManager::GetObjectPrincipal(JSContext *aCx, JSObject *aObj,
|
||||
nsIPrincipal **result)
|
||||
{
|
||||
JSObject *parent;
|
||||
while (parent = JS_GetParent(aCx, aObj))
|
||||
while ((parent = JS_GetParent(aCx, aObj)) != nsnull)
|
||||
aObj = parent;
|
||||
|
||||
nsISupports *supports = (nsISupports *) JS_GetPrivate(aCx, aObj);
|
||||
|
||||
Reference in New Issue
Block a user