Function incorrectly returns 0 when property was successfully read.
Fixes: ab5d2776c925ec45eb54ec5432f5645cebb80c85
Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
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