diff options
Diffstat (limited to 'src/strrb.c')
-rw-r--r-- | src/strrb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strrb.c b/src/strrb.c index b137acb8..a36205ab 100644 --- a/src/strrb.c +++ b/src/strrb.c @@ -118,7 +118,7 @@ bool _osmo_strrb_is_bufindex_valid(const struct osmo_strrb *rb, { if (osmo_strrb_is_empty(rb)) return 0; - if ((bufi >= rb->size) || (bufi < 0)) + if (bufi >= rb->size) return 0; if (rb->start < rb->end) return (bufi >= rb->start) && (bufi < rb->end); |