1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-25 21:57:45 +03:00

Move arg_vgnames from local scope

As gcc puts probably all vars on stack this bug was not noticed in runtime.
Patch fixes referencing local scope list variable.
This commit is contained in:
Zdenek Kabelac 2010-11-23 20:39:13 +00:00
parent d1626c2433
commit dc60e49a4d
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.78 -
====================================
Fix out-of-scope variable usage in process_each_lv().
Fix dm_task_destroy(NULL) call in _node_clear_table() error path.
Fix resource leak in _rm_blks().
Suppress 'No PV label' message when removing several PVs without mdas.

View File

@ -198,6 +198,7 @@ int process_each_lv(struct cmd_context *cmd, int argc, char **argv,
struct dm_list failed_lvnames;
struct dm_list tags, lvnames;
struct dm_list arg_lvnames; /* Cmdline vgname or vgname/lvname */
struct dm_list arg_vgnames;
char *vglv;
size_t vglv_sz;
@ -208,8 +209,6 @@ int process_each_lv(struct cmd_context *cmd, int argc, char **argv,
dm_list_init(&failed_lvnames);
if (argc) {
struct dm_list arg_vgnames;
log_verbose("Using logical volume(s) on command line");
dm_list_init(&arg_vgnames);