mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Fix a couple benign warnings by adding variable initializations.
This commit is contained in:
parent
b496210d9a
commit
7da624db7b
@ -1,5 +1,6 @@
|
||||
Version 2.02.26 -
|
||||
=================================
|
||||
Fix a couple benign warnings by adding variable initializations.
|
||||
Convert find_pv_in_vg_by_uuid and pv_create to use PV handles.
|
||||
Add get_pv_* functions to return PV members (external LVM library).
|
||||
Add wrappers to some functions in preparation for external LVM library.
|
||||
|
@ -188,7 +188,7 @@ int read_config_fd(struct config_tree *cft, struct device *dev,
|
||||
int r = 0;
|
||||
int use_mmap = 1;
|
||||
off_t mmap_offset = 0;
|
||||
char *buf;
|
||||
char *buf = NULL;
|
||||
|
||||
if (!(p = dm_pool_alloc(c->mem, sizeof(*p)))) {
|
||||
stack;
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
int vgcfgrestore(struct cmd_context *cmd, int argc, char **argv)
|
||||
{
|
||||
char *vg_name;
|
||||
char *vg_name = NULL;
|
||||
|
||||
if (argc == 1) {
|
||||
vg_name = skip_dev_dir(cmd, argv[0], NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user