]> git.ipfire.org Git - thirdparty/mtr.git/commit
warnings: fix use of uninitialized warning
authorSami Kerola <kerolasa@iki.fi>
Mon, 22 Aug 2016 21:40:50 +0000 (22:40 +0100)
committerSami Kerola <kerolasa@iki.fi>
Wed, 24 Aug 2016 20:25:10 +0000 (21:25 +0100)
commitec9dcfa4c86d926bcc0f2ca08b1a2d5d45463dc2
tree5facce62809c66b31de86c4b28679817eec23d6d
parent757615a92bbd6d251c6743e3ffc4f6f4a204364b
warnings: fix use of uninitialized warning

clang claims: variable 'port' is used uninitialized whenever switch default
is taken.  And that is a lie, but error() is not marked as function that
never returns, because it can also be used when printing warning.  So the
compiler is guessing wrong, but the easiest fix is to initialize the
variable rather than educate compiler.
net.c