Skip to content
Snippets Groups Projects
Commit 6b80d491 authored by Craig Tiller's avatar Craig Tiller
Browse files

Edge case cleanup

parent bd50ed80
No related branches found
No related tags found
No related merge requests found
...@@ -220,7 +220,7 @@ void gpr_slice_buffer_move_first(gpr_slice_buffer *src, size_t n, ...@@ -220,7 +220,7 @@ void gpr_slice_buffer_move_first(gpr_slice_buffer *src, size_t n,
return; return;
} }
src_idx = 0; src_idx = 0;
for (;;) { while (src_idx < src->capacity) {
gpr_slice slice = src->slices[src_idx]; gpr_slice slice = src->slices[src_idx];
size_t slice_len = GPR_SLICE_LENGTH(slice); size_t slice_len = GPR_SLICE_LENGTH(slice);
if (n > slice_len) { if (n > slice_len) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment