From: Daniel Stenberg Date: Tue, 27 Sep 2022 07:06:37 +0000 (+0200) Subject: ngtcp2: fix C89 compliance nit X-Git-Tag: curl-7_86_0~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4adee03cd4e0bbd324519dd7a06ba675c03ac3ae;p=thirdparty%2Fcurl.git ngtcp2: fix C89 compliance nit --- 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;