Fix compile error with gcc

This commit is contained in:
Tatsuhiro Tsujikawa 2020-06-06 00:48:33 +09:00
parent ab11b2bba5
commit 1ecc7940b8
1 changed files with 2 additions and 2 deletions

View File

@ -5353,7 +5353,7 @@ static ssize_t inbound_frame_effective_readlen(nghttp2_inbound_frame *iframe,
return (ssize_t)(readlen); return (ssize_t)(readlen);
} }
static const uint8_t sin[] = {0}; static const uint8_t static_in[] = {0};
ssize_t nghttp2_session_mem_recv(nghttp2_session *session, const uint8_t *in, ssize_t nghttp2_session_mem_recv(nghttp2_session *session, const uint8_t *in,
size_t inlen) { size_t inlen) {
@ -5370,7 +5370,7 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, const uint8_t *in,
if (in == NULL) { if (in == NULL) {
assert(inlen == 0); assert(inlen == 0);
in = sin; in = static_in;
} }
first = in; first = in;