mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix segfault if nginx was build with -O2 -fomit-frame-pointer,
r1082 did not fix the bug the bug lived for a long time but became apparent when nginx was built with gcc 4.0.x -O2 optimization
This commit is contained in:
parent
9fc5607a71
commit
f51d4fea57
@ -87,7 +87,7 @@ ngx_time_update(time_t sec, ngx_uint_t msec)
|
||||
return;
|
||||
}
|
||||
|
||||
if (slot == NGX_TIME_SLOTS) {
|
||||
if (slot == NGX_TIME_SLOTS - 1) {
|
||||
slot = 0;
|
||||
} else {
|
||||
slot++;
|
||||
|
Loading…
Reference in New Issue
Block a user