diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-11-14 18:06:14 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-11-14 18:06:14 +0100 |
commit | 792ad2c2aaa846b3497c7e61b42d43cf7a36b0da (patch) | |
tree | 9c0dee8348f8233ba03207797417a3f01a2be54f /tests | |
parent | 4d0bcdbbf212c8f0ceee167db42100b8183515f4 (diff) | |
download | socket_wrapper-792ad2c2aaa846b3497c7e61b42d43cf7a36b0da.tar.gz socket_wrapper-792ad2c2aaa846b3497c7e61b42d43cf7a36b0da.tar.xz socket_wrapper-792ad2c2aaa846b3497c7e61b42d43cf7a36b0da.zip |
tests: Make sure the struct is zeroed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testsuite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testsuite.c b/tests/testsuite.c index 487d6fb..8ad8e95 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -84,6 +84,8 @@ static void test_swrap_ioctl_tty(void **state) (void) state; /* unused */ + memset(&ws, 0, sizeof(struct winsize)); + rc = ioctl(0, TIOCGWINSZ, &ws); assert_int_equal(rc, 0); |