mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 11:52:00 +00:00
fix potential segfault,
found by Coverity's Scan
This commit is contained in:
parent
cbf72c1e61
commit
43ae46f401
1 changed files with 3 additions and 0 deletions
|
|
@ -438,6 +438,9 @@ ngx_set_environment(ngx_cycle_t *cycle, ngx_uint_t *last)
|
|||
}
|
||||
|
||||
var = ngx_array_push(&ccf->env);
|
||||
if (var == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
var->len = 2;
|
||||
var->data = (u_char *) "TZ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue