]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Fix a maybe-uninitialised compiler warning (#5269)
authorPhilip Withnall <philip@tecnocode.co.uk>
Wed, 8 Feb 2017 15:53:01 +0000 (15:53 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Feb 2017 15:53:01 +0000 (16:53 +0100)
commit6a909d41e1835a77ff65fe93002245faaaf6047a
tree7a684c43b65c84982168d27d681628107eef7d5f
parent8a50cf6957f12dbb1f90411659da9b959a1983ff
test: Fix a maybe-uninitialised compiler warning (#5269)

The compiler warning is a false positive, since n_addresses is always
initialised on the success path from parse_argv(), but the compiler
obviously can’t work that out.

Fixes:
   src/test/test-nss.c:426:9: warning: 'n_addresses' may be used uninitialized in this function [-Wmaybe-uninitialized]
src/test/test-nss.c