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;
|
||||
int ret;
|
||||
|
||||
spa = NULL;
|
||||
ret = vdev_probe(vdev_read, (void *)(uintptr_t)fd, &spa);
|
||||
if (ret == 0 && pool_guid != NULL)
|
||||
*pool_guid = spa->spa_guid;
|
||||
|
Loading…
Reference in New Issue
Block a user