mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
module: zfs: zcp_get: fix uninitialised warning
Reviewed-by: Alejandro Colomar <alx.manpages@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13110
This commit is contained in:
parent
b7c42ce5b2
commit
642827ecda
@ -230,7 +230,7 @@ get_special_prop(lua_State *state, dsl_dataset_t *ds, const char *dsname,
|
|||||||
char *strval = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP);
|
char *strval = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP);
|
||||||
char setpoint[ZFS_MAX_DATASET_NAME_LEN] =
|
char setpoint[ZFS_MAX_DATASET_NAME_LEN] =
|
||||||
"Internal error - setpoint not determined";
|
"Internal error - setpoint not determined";
|
||||||
zfs_type_t ds_type;
|
zfs_type_t ds_type = -1;
|
||||||
zprop_type_t prop_type = zfs_prop_get_type(zfs_prop);
|
zprop_type_t prop_type = zfs_prop_get_type(zfs_prop);
|
||||||
(void) get_objset_type(ds, &ds_type);
|
(void) get_objset_type(ds, &ds_type);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user