1
0
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:
Peter Rajnoha 2014-10-02 13:21:24 +02:00
parent 5011cac9cf
commit a976226e81

View File

@ -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 */