diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index f08ae6630..20f2702aa 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -111,6 +111,7 @@ struct dm_task *dm_task_create(int type) dmt->uid = DEVICE_UID; dmt->gid = DEVICE_GID; dmt->mode = DEVICE_MODE; + dmt->no_open_count = 0; return dmt; }