Fix this to be a real null check. No bug, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@199900 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -682,7 +682,7 @@ nsWindowWatcher::OpenWindowJSInternal(nsIDOMWindow *aParent,
|
||||
}
|
||||
}
|
||||
|
||||
if (aDialog && argv > 0) {
|
||||
if (aDialog && argv) {
|
||||
// Set the args on the new object.
|
||||
nsCOMPtr<nsIScriptGlobalObject> scriptGlobal(do_QueryInterface(*_retval));
|
||||
NS_ENSURE_TRUE(scriptGlobal, NS_ERROR_UNEXPECTED);
|
||||
|
||||
Reference in New Issue
Block a user