diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-11-18 07:05:54 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-11-18 07:05:54 -0800 |
commit | 6b80d4913b5d2a4ebbfd176a11c66a4726a42381 (patch) | |
tree | 8ac1d9eb5454799439c3c2b40ddf6b8ad2c54191 /src | |
parent | bd50ed8057aa9823a0fd4d0b6d5b1722c199a70d (diff) |
Edge case cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/core/support/slice_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/slice_buffer.c b/src/core/support/slice_buffer.c index 17c0b6c0f6..856d3a2439 100644 --- a/src/core/support/slice_buffer.c +++ b/src/core/support/slice_buffer.c @@ -220,7 +220,7 @@ void gpr_slice_buffer_move_first(gpr_slice_buffer *src, size_t n, return; } src_idx = 0; - for (;;) { + while (src_idx < src->capacity) { gpr_slice slice = src->slices[src_idx]; size_t slice_len = GPR_SLICE_LENGTH(slice); if (n > slice_len) { |