aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2014-01-15 01:44:52 +0400
committerValentin Bartenev <vbart@nginx.com>2014-01-15 01:44:52 +0400
commit70c010167f7f65e7b7a1f936cbf125baaf84fb7f (patch)
tree98bf31f1d9e0d2aac5cf5c15c4112155fe873348 /src
parent8323f317f6c81fc288a5d5f19902b69b398af5d9 (diff)
downloadnginx-70c010167f7f65e7b7a1f936cbf125baaf84fb7f.tar.gz
nginx-70c010167f7f65e7b7a1f936cbf125baaf84fb7f.zip
SPDY: fixed build, broken by b7ee1bae0ffa.
False positive warning about the "cl" variable may be uninitialized in the ngx_http_spdy_filter_get_data_frame() call was suppressed. It is always initialized either in the "while" cycle or in the following "if" condition since frame_size cannot be zero.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_spdy_filter_module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_spdy_filter_module.c b/src/http/ngx_http_spdy_filter_module.c
index 2bf34856b..5d45ebc1b 100644
--- a/src/http/ngx_http_spdy_filter_module.c
+++ b/src/http/ngx_http_spdy_filter_module.c
@@ -665,6 +665,10 @@ ngx_http_spdy_send_chain(ngx_connection_t *fc, ngx_chain_t *in, off_t limit)
offset = 0;
}
+#if (NGX_SUPPRESS_WARN)
+ cl = NULL;
+#endif
+
slcf = ngx_http_get_module_loc_conf(r, ngx_http_spdy_module);
frame_size = (limit && limit <= (off_t) slcf->chunk_size)