interface: fix value stored to 'fd' is never read
authorPetr Štetiar <ynezz@true.cz>
Tue, 13 Oct 2020 13:18:44 +0000 (15:18 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 13 Oct 2020 13:27:49 +0000 (15:27 +0200)
commit1fa034c65cb64deba51f0be993e5d3194ce4b0fc
treee01fc1086306084333b0c0bb62e4f4f4affb766c
parent3a67ebe3fc66ccc84b22eab317110e66b194045d
interface: fix value stored to 'fd' is never read

Fixes following issue reported by clang-12 static analyzer:

 mdnsd/interface.c:360:3: warning: Value stored to 'fd' is never read
                 fd = -1;
                 ^    ~~
 mdnsd/interface.c:394:3: warning: Value stored to 'fd' is never read
                 fd = -1;
                 ^    ~~

Original author most likely wanted to assing -1 to the original
interface filedescriptor.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
interface.c