提交 5a690f69 编写于 作者: P Peter Krempa

util: xml: Enforce return value check from virXMLFormatElement

The function does not transfer errors from 'attrBuf' and 'childBuf'
arguments into 'buf', but rather reports them right away, thus we need
to make sure that it's always checked.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 a1dec315
......@@ -217,7 +217,8 @@ int
virXMLFormatElement(virBufferPtr buf,
const char *name,
virBufferPtr attrBuf,
virBufferPtr childBuf);
virBufferPtr childBuf)
ATTRIBUTE_RETURN_CHECK;
struct _virXPathContextNodeSave {
xmlXPathContextPtr ctxt;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册