[libvirt PATCH 01/10] virXMLPropEnum: Fix return value

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

 



Function incorrectly returns 0 when property was successfully read.

Fixes: ab5d2776c925ec45eb54ec5432f5645cebb80c85
Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/util/virxml.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virxml.c b/src/util/virxml.c
index b79050db35..01c0114072 100644
--- a/src/util/virxml.c
+++ b/src/util/virxml.c
@@ -856,7 +856,7 @@ virXMLPropEnum(xmlNodePtr node,
     }
 
     *result = ret;
-    return 0;
+    return 1;
 }
 
 /**
-- 
2.26.3




[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