diff options
Diffstat (limited to 'src/os/unix/ngx_setproctitle.c')
-rw-r--r-- | src/os/unix/ngx_setproctitle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os/unix/ngx_setproctitle.c b/src/os/unix/ngx_setproctitle.c index 6c95cdf4e..25bbc9b1e 100644 --- a/src/os/unix/ngx_setproctitle.c +++ b/src/os/unix/ngx_setproctitle.c @@ -43,7 +43,8 @@ ngx_init_setproctitle(ngx_log_t *log) size += ngx_strlen(environ[i]) + 1; } - if (!(p = ngx_alloc(size, log))) { + p = ngx_alloc(size, log); + if (p == NULL) { return NGX_ERROR; } |