mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: remove compiler warning about possible uninitialized variable use
filters/filter-usable.c:22: warning: "ucp.check_..." may be used uninitialized in this function This can't actually be hit in real, but let's clean this up for the compiler to be happy again.
This commit is contained in:
parent
5011cac9cf
commit
a976226e81
@ -19,7 +19,7 @@
|
||||
static int _passes_usable_filter(struct dev_filter *f, struct device *dev)
|
||||
{
|
||||
filter_mode_t mode = *((filter_mode_t *) f->private);
|
||||
struct dev_usable_check_params ucp;
|
||||
struct dev_usable_check_params ucp = {0};
|
||||
int r;
|
||||
|
||||
/* filter only device-mapper devices */
|
||||
|
Loading…
Reference in New Issue
Block a user