Closed Bug 398581 Opened 17 years ago Closed 13 years ago

PRBool abuse in nsDocShell.cpp

Categories

(Core :: DOM: Navigation, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 671417

People

(Reporter: taras.mozilla, Unassigned)

References

Details

This needs to be rewritten.

--- docshell/base/nsDocShell.cpp
+++ docshell/base/nsDocShell.cpp
@@ -214,1 +214,1 @@
-static PRBool gValidateOrigin = (PRBool)0xffffffff;
+static PRBool gValidateOrigin = (PRBool)(0 != 0xffffffff);
@@ -3462,1 +3462,1 @@
-    if (gValidateOrigin == (PRBool)0xffffffff) {
+    if (gValidateOrigin == (PRBool)(0 != 0xffffffff)) {
Fixed by a part of bug 671417.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.