Skip to content

Commit

Permalink
Use const qualifier
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Styk <[email protected]>
  • Loading branch information
StykMartin committed Dec 9, 2023
1 parent 06c0858 commit fe4c111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ restraint_xml_read_callback(GObject *source, GAsyncResult *result, gpointer user
xmlParserErrors xmlresult = xmlParseChunk(ctxt->parser_ctxt, ctxt->buf, size,
size > 0 ? 0 : 1);
if (xmlresult != XML_ERR_OK) {
xmlError *xmlerr = xmlCtxtGetLastError(ctxt->parser_ctxt);
const xmlError *xmlerr = xmlCtxtGetLastError(ctxt->parser_ctxt);
g_set_error_literal(&ctxt->error, RESTRAINT_XML_PARSE_ERROR,
RESTRAINT_XML_PARSE_ERROR_BAD_SYNTAX,
xmlerr != NULL ? xmlerr->message : "Unknown libxml error");
Expand Down

0 comments on commit fe4c111

Please sign in to comment.