diff --git a/layout/painting/HitTestInfo.cpp b/layout/painting/HitTestInfo.cpp index 49de0d13a4c7..872773c32f8c 100644 --- a/layout/painting/HitTestInfo.cpp +++ b/layout/painting/HitTestInfo.cpp @@ -19,7 +19,7 @@ namespace mozilla { static StaticAutoPtr gEmptyHitTestInfo; const HitTestInfo& HitTestInfo::Empty() { - if (gEmptyHitTestInfo) { + if (!gEmptyHitTestInfo) { gEmptyHitTestInfo = new HitTestInfo(); }