[PATCH] conf: fix build by using ret variable when returning from functions

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

 



Introduced-by: c3a208af0d894daaa840177b749a0ecf35445a4b
Reported-by: Radoslaw Biernacki <radoslaw.biernacki@xxxxxxxxxx>
Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---

Pushed under build-breaker rule.

 src/conf/domain_conf.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 8cb9b2719c..13874837c2 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -24512,7 +24512,7 @@ virDomainControllerDefFormat(virBufferPtr buf,
  cleanup:
     virBufferFreeAndReset(&childBuf);
 
-    return 0;
+    return ret;
 }
 
 
@@ -25912,7 +25912,7 @@ virDomainSoundDefFormat(virBufferPtr buf,
  cleanup:
     virBufferFreeAndReset(&childBuf);
 
-    return 0;
+    return ret;
 }
 
 
@@ -25976,7 +25976,7 @@ virDomainMemballoonDefFormat(virBufferPtr buf,
  cleanup:
     virBufferFreeAndReset(&childrenBuf);
 
-    return 0;
+    return ret;
 }
 
 static int
-- 
2.19.1

--
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