diff options
Diffstat (limited to 'src/ring.c')
-rw-r--r-- | src/ring.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -275,10 +275,10 @@ zix_ring_write(ZixRing* const ring, const void* src, const uint32_t size) { ZixRingTransaction tx = zix_ring_begin_write(ring); - if (zix_ring_amend_write(ring, &tx, src, size) || - zix_ring_commit_write(ring, &tx)) { + if (zix_ring_amend_write(ring, &tx, src, size)) { return 0; } + zix_ring_commit_write(ring, &tx); return size; } |