diff options
author | Juan Quintela | 2017-08-23 10:27:11 +0200 |
---|---|---|
committer | Juan Quintela | 2017-09-05 22:34:40 +0200 |
commit | c18aaeb69072b74cb0a66e6638fcb14837c7cd3a (patch) | |
tree | 7daccce9d1f538d76d9ff9a35c065f2c21567ea7 /tests/test-blockjob-txn.c | |
parent | tests: Use real size for iov tests (diff) | |
download | qemu-c18aaeb69072b74cb0a66e6638fcb14837c7cd3a.tar.gz qemu-c18aaeb69072b74cb0a66e6638fcb14837c7cd3a.tar.xz qemu-c18aaeb69072b74cb0a66e6638fcb14837c7cd3a.zip |
tests: Make vmgenid test compile
Just make sure that nr_tables is size_t not int.
Once there, do the assert in the right place and be sure that we don't
have a division by zero.
Suggested-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
--
Drop the s/g_new0/g_malloc0/ change.
Avoid division by zero with assert (danp)
Diffstat (limited to 'tests/test-blockjob-txn.c')
0 files changed, 0 insertions, 0 deletions