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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux