diff options
author | Colin Watson <cjwatson@debian.org> | 2020-04-17 20:57:17 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-04-17 20:57:17 +0100 |
commit | 75073d0a8478441cc97a6efa10b566c5fb1dac81 (patch) | |
tree | b73bff259e1b16829ed8b19ee92df2bbbf36ef7d /regress/assert.c | |
parent | c923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 (diff) |
New upstream version 1.4.0
Diffstat (limited to 'regress/assert.c')
-rw-r--r-- | regress/assert.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/regress/assert.c b/regress/assert.c index ebf0652..caa5725 100644 --- a/regress/assert.c +++ b/regress/assert.c | |||
@@ -216,12 +216,16 @@ empty_assert_tests(void) | |||
216 | fido_dev_io_t io_f; | 216 | fido_dev_io_t io_f; |
217 | int i; | 217 | int i; |
218 | 218 | ||
219 | memset(&io_f, 0, sizeof(io_f)); | ||
220 | |||
219 | a = alloc_assert(); | 221 | a = alloc_assert(); |
220 | d = alloc_dev(); | 222 | d = alloc_dev(); |
223 | |||
221 | io_f.open = dummy_open; | 224 | io_f.open = dummy_open; |
222 | io_f.close = dummy_close; | 225 | io_f.close = dummy_close; |
223 | io_f.read = dummy_read; | 226 | io_f.read = dummy_read; |
224 | io_f.write = dummy_write; | 227 | io_f.write = dummy_write; |
228 | |||
225 | assert(fido_dev_set_io_functions(d, &io_f) == FIDO_OK); | 229 | assert(fido_dev_set_io_functions(d, &io_f) == FIDO_OK); |
226 | 230 | ||
227 | empty_assert(d, a, 0); | 231 | empty_assert(d, a, 0); |