summaryrefslogtreecommitdiff
path: root/src/helpers/SdDaemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/SdDaemon.cpp')
-rw-r--r--src/helpers/SdDaemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/SdDaemon.cpp b/src/helpers/SdDaemon.cpp
index d914eecf..c3008807 100644
--- a/src/helpers/SdDaemon.cpp
+++ b/src/helpers/SdDaemon.cpp
@@ -41,7 +41,7 @@ int NSystemd::sdNotify(int unsetEnvironment, const char* state) {
// address length must be at most this; see man 7 unix
size_t addrLen = strnlen(addr, 107);
- struct sockaddr_un unixAddr;
+ struct sockaddr_un unixAddr = {0};
unixAddr.sun_family = AF_UNIX;
strncpy(unixAddr.sun_path, addr, addrLen);
if (unixAddr.sun_path[0] == '@')