From 4adee03cd4e0bbd324519dd7a06ba675c03ac3ae Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 27 Sep 2022 09:06:37 +0200 Subject: [PATCH] ngtcp2: fix C89 compliance nit --- lib/vquic/ngtcp2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 9e1ab39fc0..e775c2fc83 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -1833,7 +1833,7 @@ static CURLcode do_sendmsg(size_t *psent, struct Curl_easy *data, int sockfd, size_t pktlen, size_t gsolen) { #ifdef HAVE_SENDMSG - struct iovec msg_iov = {(void *)pkt, pktlen}; + struct iovec msg_iov; struct msghdr msg = {0}; uint8_t msg_ctrl[32]; ssize_t sent; @@ -1842,6 +1842,8 @@ static CURLcode do_sendmsg(size_t *psent, struct Curl_easy *data, int sockfd, #endif *psent = 0; + msg_iov.iov_base = (uint8_t *)pkt; + msg_iov.iov_len = pktlen; msg.msg_iov = &msg_iov; msg.msg_iovlen = 1; -- 2.47.3