Mercurial > hg > nginx-quic
comparison src/core/ngx_times.c @ 1086:a62d30719ea1
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
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 29 Jan 2007 11:52:25 +0000 |
parents | 4cf9d9b644f7 |
children | 02a22cd5282a |
comparison
equal
deleted
inserted
replaced
1085:c7850d8b5239 | 1086:a62d30719ea1 |
---|---|
85 tp->msec = msec; | 85 tp->msec = msec; |
86 ngx_unlock(&ngx_time_lock); | 86 ngx_unlock(&ngx_time_lock); |
87 return; | 87 return; |
88 } | 88 } |
89 | 89 |
90 if (slot == NGX_TIME_SLOTS) { | 90 if (slot == NGX_TIME_SLOTS - 1) { |
91 slot = 0; | 91 slot = 0; |
92 } else { | 92 } else { |
93 slot++; | 93 slot++; |
94 } | 94 } |
95 | 95 |