[pulseaudio-discuss] [PATCH RFCv3 45/51] iochannel: Remove unnecessary zero-initialization

Peter Meerwald pmeerw at pmeerw.net
Tue Nov 4 15:26:40 PST 2014


Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
 src/pulsecore/iochannel.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/pulsecore/iochannel.c b/src/pulsecore/iochannel.c
index f046096..05f5c0c 100644
--- a/src/pulsecore/iochannel.c
+++ b/src/pulsecore/iochannel.c
@@ -399,11 +399,9 @@ ssize_t pa_iochannel_read_with_ancil_data(pa_iochannel*io, void*data, size_t l,
         return pa_iochannel_read(io, data, l);
     }
 
-    pa_zero(iov);
     iov.iov_base = data;
     iov.iov_len = l;
 
-    pa_zero(cmsg);
     pa_zero(mh);
     mh.msg_iov = &iov;
     mh.msg_iovlen = 1;
-- 
1.9.1



More information about the pulseaudio-discuss mailing list