lib: Fix bug 12291
authorVolker Lendecke <vl@samba.org>
Tue, 27 Sep 2016 17:08:18 +0000 (10:08 -0700)
committerVolker Lendecke <vl@samba.org>
Wed, 28 Sep 2016 17:01:02 +0000 (19:01 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12291
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 28 19:01:02 CEST 2016 on sn-devel-144

lib/util/msghdr.c

index 0100b33e1f2aebd8fd597af2fe41dc9779f081fe..4b88c1a565b83ed8a2d4328caa720328c2bb6c0d 100644 (file)
@@ -205,7 +205,7 @@ ssize_t msghdr_copy(struct msghdr_buf *msg, size_t msgsize,
                msgsize - offsetof(struct msghdr_buf, buf) : 0;
 
        if (msg != NULL) {
-               msg->msg = (struct msghdr) {};
+               msg->msg = (struct msghdr) { 0 };
 
                fd_len = msghdr_prep_fds(&msg->msg, msg->buf, bufsize,
                                         fds, num_fds);