Reviewed by Chris Petersen.
[WebKit-https.git] / WebCore / kwq / DOM.mm
index 645e433d9926364b6b57c9c9746a217c0f54e50c..24b25f5f042df29a442610e6f79b3e33f2222ed9 100644 (file)
@@ -2219,7 +2219,7 @@ short ObjCNodeFilterCondition::acceptNode(FilterNode n) const
 
 - (DOMTreeWalker *)createTreeWalker:(DOMNode *)root :(unsigned long)whatToShow :(id <DOMNodeFilter>)filter :(BOOL)expandEntityReferences
 {
-    NodeFilterImpl *cppFilter;
+    NodeFilterImpl *cppFilter = 0;
     if (filter) {
         cppFilter = new NodeFilterImpl(new ObjCNodeFilterCondition(filter));
         cppFilter->ref();