summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstddjb/ipc_recv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/ipc_recv.c b/src/libstddjb/ipc_recv.c
index 80806e7..599bad8 100644
--- a/src/libstddjb/ipc_recv.c
+++ b/src/libstddjb/ipc_recv.c
@@ -10,7 +10,7 @@
int ipc_recv (int fd, char *s, unsigned int len, char *path)
{
- struct sockaddr_un sa ;
+ struct sockaddr_un sa = { .sun_family = AF_UNIX } ;
socklen_t total = sizeof sa ;
char tmp[len] ;
register int r ;