diff options
author | David Robillard <d@drobilla.net> | 2020-12-31 15:48:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-31 18:13:35 +0100 |
commit | ad42412e3353893ccb365cf357a286b0afe545ba (patch) | |
tree | a5b1951eeb2d8a396e5d3d33dbf9cee8d326d6b9 /test/ring_test.c | |
parent | a4a67d67cbbed4e027a4587c9956adbd404d097d (diff) | |
download | zix-ad42412e3353893ccb365cf357a286b0afe545ba.tar.gz zix-ad42412e3353893ccb365cf357a286b0afe545ba.tar.bz2 zix-ad42412e3353893ccb365cf357a286b0afe545ba.zip |
Initialize all variables
Diffstat (limited to 'test/ring_test.c')
-rw-r--r-- | test/ring_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ring_test.c b/test/ring_test.c index 915d099..1a26cd3 100644 --- a/test/ring_test.c +++ b/test/ring_test.c @@ -144,12 +144,12 @@ main(int argc, char** argv) zix_ring_mlock(ring); - ZixThread reader_thread; + ZixThread reader_thread; // NOLINT if (zix_thread_create(&reader_thread, MSG_SIZE * 4, reader, NULL)) { return failure("Failed to create reader thread\n"); } - ZixThread writer_thread; + ZixThread writer_thread; // NOLINT if (zix_thread_create(&writer_thread, MSG_SIZE * 4, writer, NULL)) { return failure("Failed to create writer thread\n"); } @@ -172,8 +172,8 @@ main(int argc, char** argv) zix_ring_write(ring, "a", 1); zix_ring_write(ring, "b", 1); - char buf; - uint32_t n = zix_ring_peek(ring, &buf, 1); + char buf = 0; + uint32_t n = zix_ring_peek(ring, &buf, 1); if (n != 1) { return failure("Peek n (%u) != 1\n", n); } |