libsa: zfs_probe() needs to set spa to NULL

Silence the warning about possibly uninitialized use of spa.
This commit is contained in:
tsoome 2018-08-15 21:38:06 +00:00
parent 00438ff7b4
commit e1a53119d9

View File

@ -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;