nghttp: Fix uninitialized pri_spec

This commit is contained in:
Tatsuhiro Tsujikawa 2014-04-25 21:23:47 +09:00
parent d84d0b8c5c
commit 078b1de12e
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,8 @@ struct Request {
int exclusive = 0;
int32_t stream_id = -1;
nghttp2_priority_spec_default_init(&pri_spec);
if(pri == 0) {
return pri_spec;
}