Fix build when use Clang

libevent-client.c:355:43: error: missing field 'recv_callback' initializer [-Werror,-Wmissing-field-initializers]
This commit is contained in:
Alexis La Goutte 2014-04-30 17:29:29 +02:00
parent abe74f869f
commit 8ca2f6aa92
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ static SSL* create_ssl(SSL_CTX *ssl_ctx)
static void initialize_nghttp2_session(http2_session_data *session_data) static void initialize_nghttp2_session(http2_session_data *session_data)
{ {
nghttp2_session_callbacks callbacks = {0}; nghttp2_session_callbacks callbacks;
callbacks.send_callback = send_callback; callbacks.send_callback = send_callback;
callbacks.before_frame_send_callback = before_frame_send_callback; callbacks.before_frame_send_callback = before_frame_send_callback;