mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
util: Change return argument for virBitmapParseUnlimited
Rather than returning an int and a *bitmap pointer, just return and check a NULL bitmap pointer
This commit is contained in:
@@ -650,7 +650,7 @@ test12(const void *opaque ATTRIBUTE_UNUSED)
|
||||
TEST_MAP(151, "128");
|
||||
|
||||
virBitmapFree(map);
|
||||
if (virBitmapParseUnlimited("34,1023", &map) < 0)
|
||||
if (!(map = virBitmapParseUnlimited("34,1023")))
|
||||
goto cleanup;
|
||||
|
||||
TEST_MAP(1024, "34,1023");
|
||||
|
||||
Reference in New Issue
Block a user