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: NCédric Le Goater <clg@kaod.org> Signed-off-by: NJuan Quintela <quintela@redhat.com> Tested-by: NCleber Rosa <crosa@redhat.com> -- Drop the s/g_new0/g_malloc0/ change. Avoid division by zero with assert (danp)
Showing
想要评论请 注册 或 登录