From aacac613af5cb0d275394830ac9cce8c457161f3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 28 Nov 2015 00:50:29 +0900 Subject: [PATCH] Assert dep_stream is non-null to shut up scan-build --- lib/nghttp2_session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 7c6207d7..38b2878b 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -660,6 +660,8 @@ int nghttp2_session_reprioritize_stream( } } + assert(dep_stream); + if (dep_stream == stream->dep_prev && !pri_spec->exclusive) { /* This is minor optimization when just weight is changed. Currently, we don't reschedule stream in this case, since we