]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util/xml: don't assume libxml2 has the filename of the document
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Aug 2024 10:30:59 +0000 (11:30 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 20 Dec 2024 10:00:22 +0000 (10:00 +0000)
commit7f2fd38ee7b8da8993b427ca6f9bdd29155d455e
tree4d255ecdf28d4cd07f67fbe5cf5bfc8b3a95ccb8
parent0635cd9555ede02326afd274e8189ed3b70c1334
util/xml: don't assume libxml2 has the filename of the document

The libxml2 error handling gets the filename from a libxml2 struct, but
it is better to not assume libxml2 knows the filename being parsed, as
we might have simply provided it a pre-loaded string.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virxml.c