提交 6caf67f8 编写于 作者: J John Ferlan

storage: Fix broken storage_driver build

Commit id '5d5c732d' had an incorrect assignment and was found
by travis build:

storage/storage_driver.c:1668:14: error: equality comparison with extraneous
      parentheses [-Werror,-Wparentheses-equality]
    if ((obj == virStoragePoolObjListSearch(&driver->pools,

         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
上级 dcb5d8bb
......@@ -1665,9 +1665,9 @@ storagePoolLookupByTargetPath(virConnectPtr conn,
return NULL;
storageDriverLock();
if ((obj == virStoragePoolObjListSearch(&driver->pools,
storagePoolLookupByTargetPathCallback,
path))) {
if ((obj = virStoragePoolObjListSearch(&driver->pools,
storagePoolLookupByTargetPathCallback,
path))) {
def = virStoragePoolObjGetDef(obj);
pool = virGetStoragePool(conn, def->name, def->uuid, NULL, NULL);
virStoragePoolObjEndAPI(&obj);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册