[libvirt] [PATCH 02/19] util: buffer: Use 'cleanup' as label name in virBufferAddBuffer

Peter Krempa pkrempa at redhat.com
Thu Oct 24 13:56:20 UTC 2019


Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/util/virbuffer.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/util/virbuffer.c b/src/util/virbuffer.c
index a58481430a..a2b5aa8508 100644
--- a/src/util/virbuffer.c
+++ b/src/util/virbuffer.c
@@ -201,22 +201,22 @@ virBufferAddBuffer(virBufferPtr buf, virBufferPtr toadd)
         return;

     if (!buf)
-        goto done;
+        goto cleanup;

     if (buf->error || toadd->error) {
         if (!buf->error)
             virBufferSetError(buf, toadd->error);
-        goto done;
+        goto cleanup;
     }

     if (virBufferGrow(buf, toadd->use) < 0)
-        goto done;
+        goto cleanup;

     memcpy(&buf->content[buf->use], toadd->content, toadd->use);
     buf->use += toadd->use;
     buf->content[buf->use] = '\0';

- done:
+ cleanup:
     virBufferFreeAndReset(toadd);
 }

-- 
2.21.0




More information about the libvir-list mailing list