@@ -156,7 +156,7 @@ static VALUE rxml_html_parser_context_file(int argc, VALUE* argv, VALUE klass)
156156
157157 htmlParserCtxtPtr ctxt = htmlCreateFileParserCtxt (StringValuePtr (file ), NULL );
158158 if (!ctxt )
159- rxml_raise (& xmlLastError );
159+ rxml_raise (xmlGetLastError () );
160160
161161 /* This is annoying, but xmlInitParserCtxt (called indirectly above) and
162162 xmlCtxtUseOptionsInternal (called below) initialize slightly different
@@ -197,7 +197,7 @@ static VALUE rxml_html_parser_context_io(int argc, VALUE* argv, VALUE klass)
197197 if (!ctxt )
198198 {
199199 xmlFreeParserInputBuffer (input );
200- rxml_raise (& xmlLastError );
200+ rxml_raise (xmlGetLastError () );
201201 }
202202
203203 /* This is annoying, but xmlInitParserCtxt (called indirectly above) and
@@ -212,7 +212,7 @@ static VALUE rxml_html_parser_context_io(int argc, VALUE* argv, VALUE klass)
212212 {
213213 xmlFreeParserInputBuffer (input );
214214 xmlFreeParserCtxt (ctxt );
215- rxml_raise (& xmlLastError );
215+ rxml_raise (xmlGetLastError () );
216216 }
217217 inputPush (ctxt , stream );
218218 result = rxml_html_parser_context_wrap (ctxt );
@@ -247,7 +247,7 @@ static VALUE rxml_html_parser_context_string(int argc, VALUE* argv, VALUE klass)
247247 ctxt = xmlCreateMemoryParserCtxt (StringValuePtr (string ),
248248 (int )RSTRING_LEN (string ));
249249 if (!ctxt )
250- rxml_raise (& xmlLastError );
250+ rxml_raise (xmlGetLastError () );
251251
252252 /* This is annoying, but xmlInitParserCtxt (called indirectly above) and
253253 xmlCtxtUseOptionsInternal (called below) initialize slightly different
0 commit comments