master - cleanup: remove compiler warning about possible uninitialized variable use
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a976226e81c561d1123087d1d3dac10ce12e073f Commit: a976226e81c561d1123087d1d3dac10ce12e073f Parent: 5011cac9cfe2845c52f132feb78d72aaee60ff7b Author: Peter Rajnoha <[email protected]> AuthorDate: Thu Oct 2 13:21:24 2014 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Thu Oct 2 13:21:24 2014 +0200
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.
--- lib/filters/filter-usable.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/filters/filter-usable.c +1 -1
@@ -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 */