examples: Zero clear callbacks

This commit is contained in:
Tatsuhiro Tsujikawa 2014-05-01 10:46:08 +09:00
parent 813c750c12
commit 9ca63de9e8
2 changed files with 4 additions and 0 deletions

View File

@ -354,6 +354,8 @@ static void initialize_nghttp2_session(http2_session_data *session_data)
{
nghttp2_session_callbacks callbacks;
memset(&callbacks, 0, sizeof(callbacks));
callbacks.send_callback = send_callback;
callbacks.before_frame_send_callback = before_frame_send_callback;
callbacks.on_frame_recv_callback = on_frame_recv_callback;

View File

@ -551,6 +551,8 @@ static void initialize_nghttp2_session(http2_session_data *session_data)
{
nghttp2_session_callbacks callbacks;
memset(&callbacks, 0, sizeof(callbacks));
callbacks.send_callback = send_callback;
callbacks.on_frame_recv_callback = on_frame_recv_callback;
callbacks.on_stream_close_callback = on_stream_close_callback;