]> git.kaiwu.me - nginx.git/commitdiff
SPDY: fixed build, broken by b7ee1bae0ffa.
authorValentin Bartenev <vbart@nginx.com>
Tue, 14 Jan 2014 21:44:52 +0000 (01:44 +0400)
committerValentin Bartenev <vbart@nginx.com>
Tue, 14 Jan 2014 21:44:52 +0000 (01:44 +0400)
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.

src/http/ngx_http_spdy_filter_module.c

index 2bf34856b1b48ee40efee63ff5017afa2c2d0a6a..5d45ebc1b601e06346fa178898a6868efecf3971 100644 (file)
@@ -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)