mirror of
git://sourceware.org/git/lvm2.git
synced 2026-01-15 16:32:49 +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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user