提交 9be9e26b 编写于 作者: P Peter Krempa

util: buffer: Tolerate NULL 'buf' in virBufferStrcat

Most other buffer APIs tolerate the buffer being NULL.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
上级 3f9e02b4
......@@ -883,6 +883,9 @@ virBufferStrcat(virBufferPtr buf, ...)
{
va_list ap;
if (!buf)
return;
va_start(ap, buf);
virBufferStrcatVArgs(buf, ap);
va_end(ap);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册