From: Kurt Zeilenga Date: Tue, 4 Mar 2003 21:49:21 +0000 (+0000) Subject: fix initializer X-Git-Tag: NO_SLAP_OP_BLOCKS~186 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e20f94c9f92bf3c19ae3952ace128f014901417b;p=openldap fix initializer --- 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;