From e20f94c9f92bf3c19ae3952ace128f014901417b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 4 Mar 2003 21:49:21 +0000 Subject: [PATCH] fix initializer --- libraries/liblutil/getpeereid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/liblutil/getpeereid.c b/libraries/liblutil/getpeereid.c index 2642886c27..de48ab8b53 100644 --- a/libraries/liblutil/getpeereid.c +++ b/libraries/liblutil/getpeereid.c @@ -58,9 +58,12 @@ int getpeereid( int s, uid_t *euid, gid_t *egid ) } #elif defined( DO_SENDMSG ) int dummy, fd[2]; - struct iovec iov = {(char *)&dummy, 1}; + struct iovec iov; struct msghdr msg = {0}; struct stat st; + + iov.iov_base = (char*) &dummy; + iov.iov_len = 1; msg.msg_iov = &iov; msg.msg_iovlen = 1; msg.msg_accrights = (char *)fd; -- 2.39.5