Re: [PATCH 07/31] Don't overwrite error message from 'virXPathNodeSet'

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

 



On a Tuesday in 2024, Peter Krempa wrote:
'virXPathNodeSet' returns -1 only when 'ctxt' or 'xpath' are NULL or
when the 'xpath' string is invalid. Both are programmign errors. It

*programming

doesn't make sense for the code to overwrite the error message for
anything supposedly more relevant.

The majority of calls to 'virXPathNodeSet' already didn't do this, so
this patch fixes the rest to prevent it from spreading again.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
src/conf/domain_conf.c           | 78 +++++++------------------------
src/conf/network_conf.c          | 80 ++++++++------------------------
src/conf/node_device_conf.c      | 17 ++-----
src/conf/numa_conf.c             | 15 +++---
src/cpu/cpu_ppc64.c              |  5 +-
src/qemu/qemu_capabilities.c     | 30 +++---------
src/qemu/qemu_domain.c           | 23 +++------
src/qemu/qemu_migration_cookie.c |  5 +-
src/qemu/qemu_nbdkit.c           |  5 +-
src/vz/vz_sdk.c                  |  5 +-
10 files changed, 72 insertions(+), 191 deletions(-)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx

[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