Fix uninitialized nghttp2_hd_ws_entry index

This commit is contained in:
Tatsuhiro Tsujikawa 2013-07-20 01:01:29 +09:00
parent 00b2d06850
commit aa87130711
1 changed files with 1 additions and 0 deletions

View File

@ -385,6 +385,7 @@ static int add_workingset(nghttp2_hd_context *context, nghttp2_hd_entry *ent)
ws_ent = &context->ws[context->wslen++];
ws_ent->cat = NGHTTP2_HD_CAT_INDEXED;
ws_ent->indexed.entry = ent;
ws_ent->indexed.index = ent->index;
ws_ent->indexed.checked = 1;
++ent->ref;
return 0;