libsa: zfs_probe() needs to set spa to NULL
Silence the warning about possibly uninitialized use of spa.
This commit is contained in:
parent
00438ff7b4
commit
e1a53119d9
@ -467,6 +467,7 @@ zfs_probe(int fd, uint64_t *pool_guid)
|
|||||||
spa_t *spa;
|
spa_t *spa;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
spa = NULL;
|
||||||
ret = vdev_probe(vdev_read, (void *)(uintptr_t)fd, &spa);
|
ret = vdev_probe(vdev_read, (void *)(uintptr_t)fd, &spa);
|
||||||
if (ret == 0 && pool_guid != NULL)
|
if (ret == 0 && pool_guid != NULL)
|
||||||
*pool_guid = spa->spa_guid;
|
*pool_guid = spa->spa_guid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user