diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-29 17:24:27 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-29 17:36:46 -0800 |
| commit | 330c4907544ac1c1f42e22bde45d9c7e49a8e333 (patch) | |
| tree | 2984f93679bab06aaf824bc7cde7f152afd113f7 /src/core | |
| parent | 337d6066098bd1d78dfe33afccdcccc83a9be391 (diff) | |
| download | nng-330c4907544ac1c1f42e22bde45d9c7e49a8e333.tar.gz nng-330c4907544ac1c1f42e22bde45d9c7e49a8e333.tar.bz2 nng-330c4907544ac1c1f42e22bde45d9c7e49a8e333.zip | |
aio: clear vector on advance (debugging aid)
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/aio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/aio.c b/src/core/aio.c index 98447c00..bbeb5cef 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -749,6 +749,8 @@ nni_aio_iov_advance(nni_aio *aio, size_t n) for (unsigned i = 0; i < aio->a_nio; i++) { aio->a_iov[i] = aio->a_iov[i + 1]; } + aio->a_iov[aio->a_nio].iov_buf = NULL; // serves as indicator + aio->a_iov[aio->a_nio].iov_len = 0; // serves as indicator } return (residual); // we might not have used all of n for this iov } |
