diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-01-03 15:43:01 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-01-03 15:43:01 +0000 |
commit | b94b180181743765322c0cc97cc9f0a6f2bce4b3 (patch) | |
tree | ca29b055bd66c310654176b7559e7ca48ef25a9a /src | |
parent | 3364dc6eb780a499e1a0c245330a843f15104510 (diff) | |
download | nginx-b94b180181743765322c0cc97cc9f0a6f2bce4b3.tar.gz nginx-b94b180181743765322c0cc97cc9f0a6f2bce4b3.zip |
fix segfaults
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_cycle.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 1e1343d2a..89408fb4a 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -1031,14 +1031,16 @@ ngx_shared_memory_add(ngx_conf_t *cf, ngx_str_t *name, size_t size, void *tag) if (size && size != shm_zone[i].shm.size) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "the size %uz of shared memory zone \"%V\" " - "conflicts with already declared size %uz"); + "conflicts with already declared size %uz", + size, &shm_zone[i].name, shm_zone[i].shm.size); return NULL; } if (tag != shm_zone[i].tag) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "the shared memory zone \"%V\" is " - "already declared for a different use"); + "already declared for a different use", + &shm_zone[i].name); return NULL; } |