We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc84981 commit b653d00Copy full SHA for b653d00
1 file changed
iocore/eventsystem/P_IOBuffer.h
@@ -684,8 +684,7 @@ IOBufferReader::consume(int64_t n)
684
685
TS_INLINE char &IOBufferReader::operator[](int64_t i)
686
{
687
- static char _error = '\0';
688
- IOBufferBlock *b = block.get();
+ IOBufferBlock *b = block.get();
689
690
i += start_offset;
691
while (b) {
@@ -696,12 +695,7 @@ TS_INLINE char &IOBufferReader::operator[](int64_t i)
696
695
b = b->next.get();
697
}
698
699
- ink_assert(!"out of range");
700
- if (unlikely(b)) {
701
- return *b->start();
702
- }
703
-
704
- return _error;
+ ink_release_assert(!"out of range");
705
706
707
TS_INLINE void
0 commit comments