mirror of
https://github.com/nginx/nginx.git
synced 2026-09-01 02:58:40 +00:00
SPDY: moved a variable initialization near to its check.
This should prevent attempts of using pointer before it was checked, since all modern compilers are able to spot access to uninitialized variable. No functional changes.
This commit is contained in:
parent
5d3f84e4e1
commit
7da40e6a99
1 changed files with 2 additions and 2 deletions
|
|
@ -1412,8 +1412,6 @@ ngx_http_spdy_state_data(ngx_http_spdy_connection_t *sc, u_char *pos,
|
|||
{
|
||||
ngx_http_spdy_stream_t *stream;
|
||||
|
||||
stream = sc->stream;
|
||||
|
||||
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, sc->connection->log, 0,
|
||||
"spdy DATA frame");
|
||||
|
||||
|
|
@ -1441,6 +1439,8 @@ ngx_http_spdy_state_data(ngx_http_spdy_connection_t *sc, u_char *pos,
|
|||
sc->recv_window = NGX_SPDY_MAX_WINDOW;
|
||||
}
|
||||
|
||||
stream = sc->stream;
|
||||
|
||||
if (stream == NULL) {
|
||||
return ngx_http_spdy_state_skip(sc, pos, end);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue