summaryrefslogtreecommitdiff
path: root/libmisc/tests/test_obj_nest.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-12 14:26:21 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-12 14:26:21 -0600
commit811d9700e1414dae3357361b3ca565f673f63b08 (patch)
treece628075a2ae59d5362d2662465c918f57e81607 /libmisc/tests/test_obj_nest.c
parentcd5e55ebb7d5a51c0a8bd62137ab75a0f6ff1356 (diff)
parentb4a081932338f65aa87aeba5008463feb0a78519 (diff)
Merge branch 'lukeshu/misc'HEADmain
Diffstat (limited to 'libmisc/tests/test_obj_nest.c')
-rw-r--r--libmisc/tests/test_obj_nest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmisc/tests/test_obj_nest.c b/libmisc/tests/test_obj_nest.c
index bb9d6de..d5e563e 100644
--- a/libmisc/tests/test_obj_nest.c
+++ b/libmisc/tests/test_obj_nest.c
@@ -63,10 +63,10 @@ static ssize_t myclass_write(struct myclass *self, void *buf, size_t count) {
/* main test body *************************************************************/
int main() {
- struct myclass _obj = {0};
+ struct myclass _obj = {};
lo_interface read_writer obj = lo_box_myclass_as_read_writer(&_obj);
test_assert(LO_CALL(obj, write, "Hello", 6) == 6);
- char buf[6] = {0};
+ char buf[6] = {};
test_assert(LO_CALL(obj, read, buf, 3) == 3);
test_assert(memcmp(buf, "Hel\0\0\0", 6) == 0);
return 0;