From 4bab4de9b9a6a29df9e9f17ae03a6bcbe8e8a74b Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 16 Sep 2022 09:14:42 +0200 Subject: [PATCH] util: xml: Adjust documentation of virXMLPropString MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit All callers treat NULL as if the string is not present in the XML. Adjust the description so that it's implied that it's not an error and thus also no error reporting is expected. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/util/virxml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/virxml.c b/src/util/virxml.c index f92cd32dfa..7122d42ef1 100644 --- a/src/util/virxml.c +++ b/src/util/virxml.c @@ -443,7 +443,8 @@ virXMLCheckIllegalChars(const char *nodeName, * * Convenience function to return copy of an attribute value of a XML node. * - * Returns the property (attribute) value as string or NULL in case of failure. + * Returns the property (attribute) value as string or NULL if the attribute + * is not present (no error is reported). * The caller is responsible for freeing the returned buffer. */ char * -- 2.47.2