mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
testlibrbd: add missing va_end()
Coverity cid 57, 58 Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
parent
29c1ce5585
commit
c61568512e
@ -91,6 +91,7 @@ void test_ls(rados_ioctx_t io_ctx, size_t num_expected, ...)
|
||||
}
|
||||
assert(found);
|
||||
}
|
||||
va_end(ap);
|
||||
|
||||
for (i = 0, cur_name = names; i < num_images; i++) {
|
||||
assert(cur_name[0] == '_');
|
||||
@ -143,6 +144,7 @@ void test_ls_snaps(rbd_image_t image, int num_expected, ...)
|
||||
}
|
||||
assert(found);
|
||||
}
|
||||
va_end(ap);
|
||||
|
||||
for (i = 0; i < num_snaps; i++) {
|
||||
assert(snaps[i].name == NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user