Skip to content

Commit

Permalink
fix build: ngx_str_t::len may be used uninitialized in this function
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigzagAK authored Dec 8, 2019
1 parent c833ae5 commit a9ba179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_dynamic_upstream_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ equals(PeerT *peer, ngx_str_t server, ngx_str_t name)
static ngx_str_t
ngx_str_shm(ngx_slab_pool_t *shpool, ngx_str_t *s)
{
ngx_str_t sh;
ngx_str_t sh = ngx_null_string;
sh.data = ngx_shm_calloc<u_char>(shpool, s->len);
if (sh.data != NULL) {
ngx_memcpy(sh.data, s->data, s->len);
Expand Down

0 comments on commit a9ba179

Please sign in to comment.