提交 3f8de891 编写于 作者: J Jim Meyering

virBufferStrcat: do not skip va_end

* src/util/buf.c (virBufferStrcat): Do not skip va_end due to
an early return.
上级 12ed08bc
/*
* buf.c: buffers for libvirt
*
* Copyright (C) 2005-2008 Red Hat, Inc.
* Copyright (C) 2005-2008, 2010 Red Hat, Inc.
*
* See COPYING.LIB for the License of this software
*
......@@ -424,7 +424,7 @@ virBufferStrcat(virBufferPtr buf, ...)
if (needSize > buf->size) {
if (virBufferGrow(buf, needSize - buf->use) < 0)
return;
break;
}
memcpy(&buf->content[buf->use], str, len);
buf->use += len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册