Klaus Demo nginx / 80a2901
fix segfault if nginx was build with -O2 -fomit-frame-pointer (at least by gcc 4.0.2 and 4.0.3) Igor Sysoev 15 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
100100 ngx_gmtime(sec, &gmt);
101101
102102
103 p0 = cached_http_time[slot];
103 p0 = &cached_http_time[slot][0];
104104
105105 (void) ngx_sprintf(p0, "%s, %02d %s %4d %02d:%02d:%02d GMT",
106106 week[gmt.ngx_tm_wday], gmt.ngx_tm_mday,
125125 #endif
126126
127127
128 p1 = cached_err_log_time[slot];
128 p1 = &cached_err_log_time[slot][0];
129129
130130 (void) ngx_sprintf(p1, "%4d/%02d/%02d %02d:%02d:%02d",
131131 tm.ngx_tm_year, tm.ngx_tm_mon,
133133 tm.ngx_tm_min, tm.ngx_tm_sec);
134134
135135
136 p2 = cached_http_log_time[slot];
136 p2 = &cached_http_log_time[slot][0];
137137
138138 (void) ngx_sprintf(p2, "%02d/%s/%d:%02d:%02d:%02d %c%02d%02d",
139139 tm.ngx_tm_mday, months[tm.ngx_tm_mon - 1],