Assert dep_stream is non-null to shut up scan-build

This commit is contained in:
Tatsuhiro Tsujikawa 2015-11-28 00:50:29 +09:00
parent ba9e912cf6
commit aacac613af
1 changed files with 2 additions and 0 deletions

View File

@ -660,6 +660,8 @@ int nghttp2_session_reprioritize_stream(
} }
} }
assert(dep_stream);
if (dep_stream == stream->dep_prev && !pri_spec->exclusive) { if (dep_stream == stream->dep_prev && !pri_spec->exclusive) {
/* This is minor optimization when just weight is changed. /* This is minor optimization when just weight is changed.
Currently, we don't reschedule stream in this case, since we Currently, we don't reschedule stream in this case, since we