]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf/nwfilter: Initialize size_t attr to zero
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 14 Jun 2023 10:30:29 +0000 (12:30 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 14 Jun 2023 10:47:55 +0000 (12:47 +0200)
commit078e645cc3b19458eee4b89b4bfd8e0a32a8b424
treeb9f18e9cd2672493de6b8381bf58dfa8b7334b40
parente31ac985f5ab17ff8aa615ac316ad0fd64e3fbe3
conf/nwfilter: Initialize size_t attr to zero

Newer GCC (13.1.1 in my case) wrongly reports "maybe uninitialized"
warning for this variable inside the next condition.  Even though this
accusation is wrong (the condition is guarded by the same condition as
the for cycle initializing it), initialize it during the declaration so
compilation errors don't stop others and maybe also future proof the
code for changes.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/nwfilter_conf.c