]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix -Werror=maybe-uninitialized
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 16 Mar 2025 08:18:23 +0000 (12:18 +0400)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 18 Mar 2025 13:15:55 +0000 (14:15 +0100)
commit44089b4eead38b5950e1f02cf32ea27aa1132f09
tree83f0ed3bbaef96036866496d652d7293dff888e5
parent7253dda5178e0504a4f3ba859c96883aca6bec7d
build: fix -Werror=maybe-uninitialized

When compiled with -Doptimization=g

../tools/nss/libvirt_nss_macs.c:155:8: error: ‘jerr’ may be used uninitialized [-Werror=maybe-uninitialized]
  155 |     if (jerr == json_tokener_continue) {
      |        ^

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tools/nss/libvirt_nss_leases.c
tools/nss/libvirt_nss_macs.c