Skip to content
Snippets Groups Projects
Commit 909a7c2c authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa
Browse files

Fix initial index of ngtcp2_ringbuf

parent 32b4355f
No related merge requests found
......@@ -40,7 +40,7 @@ int ngtcp2_ringbuf_init(ngtcp2_ringbuf *rb, size_t nmemb, size_t size,
rb->mem = mem;
rb->nmemb = nmemb;
rb->size = size;
rb->first = size - 1;
rb->first = 0;
rb->len = 0;
return 0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment