mirror of
https://github.com/nginx/nginx.git
synced 2025-01-08 07:03:01 -06:00
fix potential segfault,
found by Coverity's Scan
This commit is contained in:
parent
cbf72c1e61
commit
43ae46f401
@ -438,6 +438,9 @@ ngx_set_environment(ngx_cycle_t *cycle, ngx_uint_t *last)
|
|||||||
}
|
}
|
||||||
|
|
||||||
var = ngx_array_push(&ccf->env);
|
var = ngx_array_push(&ccf->env);
|
||||||
|
if (var == NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
var->len = 2;
|
var->len = 2;
|
||||||
var->data = (u_char *) "TZ";
|
var->data = (u_char *) "TZ";
|
||||||
|
Loading…
Reference in New Issue
Block a user