Skip to content

Commit 1af4d64

Browse files
committed
Try to fix crash on MacOS
1 parent 9234559 commit 1af4d64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/libxml/ruby_xml_xpath_context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ static VALUE rxml_xpath_context_initialize(VALUE self, VALUE document)
9090
if (wrapper == NULL)
9191
{
9292
wrapper = ALLOC(rxml_xpath_context);
93+
wrapper->document = document;
9394
RTYPEDDATA_DATA(self) = wrapper;
9495
}
9596
else if (wrapper->xctxt)
9697
{
9798
xmlXPathFreeContext(wrapper->xctxt);
9899
}
99100

100-
wrapper->document = document;
101101
wrapper->xctxt = xmlXPathNewContext(xdoc);
102102

103103
return self;

0 commit comments

Comments
 (0)