diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-07-19 19:08:22 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-07-19 19:08:22 +0000 |
commit | 43ae46f40142ff394a2af1fad3eb62c9bf7fc8fa (patch) | |
tree | 4ee8e132e7e21641b57651db91dbc42c50635424 /src | |
parent | cbf72c1e611c3544ee939510a0260b65f2298fc1 (diff) | |
download | nginx-43ae46f40142ff394a2af1fad3eb62c9bf7fc8fa.tar.gz nginx-43ae46f40142ff394a2af1fad3eb62c9bf7fc8fa.zip |
fix potential segfault,
found by Coverity's Scan
Diffstat (limited to 'src')
-rw-r--r-- | src/core/nginx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index df6c72cfd..b758775e3 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -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"; |