mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 18:29:00 +08: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);
|
||||
if (var == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
var->len = 2;
|
||||
var->data = (u_char *) "TZ";
|
||||
|
Loading…
Reference in New Issue
Block a user