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:
mrbkap%gmail.com
2006-06-14 22:25:12 +00:00
parent ff2e460cf2
commit 84778e1771

View File

@@ -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);