]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virBufferStrcat: do not skip va_end
authorJim Meyering <meyering@redhat.com>
Thu, 18 Feb 2010 19:46:24 +0000 (20:46 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 19 Feb 2010 10:52:04 +0000 (11:52 +0100)
* src/util/buf.c (virBufferStrcat): Do not skip va_end due to
an early return.

src/util/buf.c

index e683928cd84b36ee8d74bc66b2876ca5282c1188..cc0a0870e334f3d3a48240bdd4e85b5f316acbec 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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;