fix segfault if nginx was build with -O2 -fomit-frame-pointer
(at least by gcc 4.0.2 and 4.0.3)
diff --git a/src/core/ngx_times.c b/src/core/ngx_times.c
index 571e4e7..be289dd 100644
--- a/src/core/ngx_times.c
+++ b/src/core/ngx_times.c
@@ -101,7 +101,7 @@
ngx_gmtime(sec, &gmt);
- p0 = cached_http_time[slot];
+ p0 = &cached_http_time[slot][0];
(void) ngx_sprintf(p0, "%s, %02d %s %4d %02d:%02d:%02d GMT",
week[gmt.ngx_tm_wday], gmt.ngx_tm_mday,
@@ -126,7 +126,7 @@
#endif
- p1 = cached_err_log_time[slot];
+ p1 = &cached_err_log_time[slot][0];
(void) ngx_sprintf(p1, "%4d/%02d/%02d %02d:%02d:%02d",
tm.ngx_tm_year, tm.ngx_tm_mon,
@@ -134,7 +134,7 @@
tm.ngx_tm_min, tm.ngx_tm_sec);
- p2 = cached_http_log_time[slot];
+ p2 = &cached_http_log_time[slot][0];
(void) ngx_sprintf(p2, "%02d/%s/%d:%02d:%02d:%02d %c%02d%02d",
tm.ngx_tm_mday, months[tm.ngx_tm_mon - 1],