summaryrefslogtreecommitdiff
path: root/src/bsd
diff options
context:
space:
mode:
Diffstat (limited to 'src/bsd')
-rw-r--r--src/bsd/tunDevice.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp
index 0fe27f5..b47a1da 100644
--- a/src/bsd/tunDevice.cpp
+++ b/src/bsd/tunDevice.cpp
@@ -91,6 +91,7 @@ TunDevice::TunDevice(const char* dev_name, const char* dev_type, const char* ifc
msg.append(device_file);
msg.append("): ");
char buf[STERROR_TEXT_MAX];
+ buf[0] = 0;
strerror_r(errno, buf, STERROR_TEXT_MAX);
msg.append(buf);
}