diff options
Diffstat (limited to 'src/core/ngx_buf.c')
-rw-r--r-- | src/core/ngx_buf.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/ngx_buf.c b/src/core/ngx_buf.c index a536c04de..7d379890f 100644 --- a/src/core/ngx_buf.c +++ b/src/core/ngx_buf.c @@ -126,12 +126,11 @@ void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, *busy = *out; } else { - for (tl = *busy; /* void */ ; tl = tl->next) { - if (tl->next == NULL) { - tl->next = *out; - break; - } + for (tl = *busy; tl->next; tl = tl->next) { + /* void */; } + + tl->next = *out; } *out = NULL; |