Fix build when use Clang

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

View File

@ -549,7 +549,7 @@ static int on_stream_close_callback(nghttp2_session *session,
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.on_frame_recv_callback = on_frame_recv_callback;