[PATCH 3/6] No need to zero memory on allocation

Nikolay Sivov nsivov at codeweavers.com
Sat Mar 12 18:00:54 CST 2011


---
 dlls/msxml3/selection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msxml3/selection.c b/dlls/msxml3/selection.c
index 2a46e1d..97165fa 100644
--- a/dlls/msxml3/selection.c
+++ b/dlls/msxml3/selection.c
@@ -605,7 +605,7 @@ static void query_serror(void* ctx, xmlErrorPtr err)
 
 HRESULT create_selection(xmlNodePtr node, xmlChar* query, IXMLDOMNodeList **out)
 {
-    domselection *This = heap_alloc_zero(sizeof(domselection));
+    domselection *This = heap_alloc(sizeof(domselection));
     xmlXPathContextPtr ctxt = xmlXPathNewContext(node->doc);
     HRESULT hr;
 
-- 
1.5.6.5



--------------070002080307080508000200--



More information about the wine-patches mailing list