summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network.cpp b/src/network.cpp
index 9f5d321..87b2d8d 100644
--- a/src/network.cpp
+++ b/src/network.cpp
@@ -301,7 +301,7 @@ static void addr_change(const std::string &name, int action, const std::string &
static bool manage_tap(const std::string &name, int on_off)
{
- int fd;
+ int fd = -1;
struct ifreq ifr;
bool rc = true;
std::string err;