fix potential segfault,

found by Coverity's Scan
This commit is contained in:
Igor Sysoev 2007-07-19 19:08:22 +00:00
parent cbf72c1e61
commit 43ae46f401

View File

@ -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";