[vlc-devel] [PATCH] access/satip: replace memset with explicit initialization
Filip Roséen
filip at atch.se
Sun Feb 26 16:56:06 CET 2017
It is clearer to initialize the relevant data-member directly than to
use memset on the entire structure.
---
modules/access/satip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/satip.c b/modules/access/satip.c
index 7653752438..007c934dc5 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -435,7 +435,7 @@ static void *satip_thread(void *data) {
memset(&msgs[i], 0, sizeof (msgs[i]));
msgs[i].msg_hdr.msg_iov = &iovecs[i];
msgs[i].msg_hdr.msg_iovlen = 1;
- memset(&iovecs[i], 0, sizeof (iovecs[i]));
+ iovecs[i].iov_base = NULL;
iovecs[i].iov_len = RTSP_RECEIVE_BUFFER;
input_blocks[i] = NULL;
}
--
2.11.1
More information about the vlc-devel
mailing list