From: Peter Krempa Date: Fri, 16 Sep 2022 07:14:42 +0000 (+0200) Subject: util: xml: Adjust documentation of virXMLPropString X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4bab4de9b9a6a29df9e9f17ae03a6bcbe8e8a74b;p=libvirt.git util: xml: Adjust documentation of virXMLPropString 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 --- 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 *