From d6afd4b928a3e2875297cd9cba11b570a83d95f9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 25 Jun 2015 11:42:33 +0000 Subject: Appease compiler on .sun_family in ipc_recv --- src/libstddjb/ipc_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- cgit v1.2.3