Re: [PATCH 10/37] virDomainNetIPInfoParseXML: Simplify cleanup

2022-09-21 Thread Ján Tomko
On a Monday in 2022, Peter Krempa wrote: Do the XPath fetches first as they don't require cleanup and rename 'cleanup' to 'error' and take it only on failure. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) R

[PATCH 10/37] virDomainNetIPInfoParseXML: Simplify cleanup

2022-09-19 Thread Peter Krempa
Do the XPath fetches first as they don't require cleanup and rename 'cleanup' to 'error' and take it only on failure. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/src/conf/domain_conf.c b/src/co