avoid possible use of uninitialized intf_addr in nmrp_do() 34/head
authorDamyan Ivanov <dmn@debian.org>
Sun, 19 Apr 2020 05:57:21 +0000 (05:57 +0000)
committerDamyan Ivanov <dmn@debian.org>
Sun, 19 Apr 2020 06:02:22 +0000 (06:02 +0000)
commit6396c33402b0072867b51e4c1b7ecb2a25814bee
tree74a12e9f82acb7d3d07b86c98f83c67575e6d877
parente95526d06cd4d8869befb79a26ade8bbc2262265
avoid possible use of uninitialized intf_addr in nmrp_do()

 Silences a warning by gcc:
 .
  nmrp.c:462:7: warning: ‘intf_addr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  462 |   if (ethsock_ip_add(sock, intf_addr, ipmask.s_addr, &ip_undo) != 0) {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nmrp.c