Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r--src/core/ngx_log.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c
index 5d937f226..adccd5e33 100644
--- a/src/core/ngx_log.c
+++ b/src/core/ngx_log.c
@@ -253,11 +253,13 @@ ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args)
name = NULL;
}
- if (!(log = ngx_pcalloc(cycle->pool, sizeof(ngx_log_t)))) {
+ log = ngx_pcalloc(cycle->pool, sizeof(ngx_log_t));
+ if (log == NULL) {
return NULL;
}
- if (!(log->file = ngx_conf_open_file(cycle, name))) {
+ log->file = ngx_conf_open_file(cycle, name);
+ if (log->file == NULL) {
return NULL;
}