]> sourceware.org Git - lvm2.git/commitdiff
Fix compile warning in vgchange.c regarding mda_copies initialization.
authorDave Wysochanski <dwysocha@redhat.com>
Mon, 28 Jun 2010 21:35:00 +0000 (21:35 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Mon, 28 Jun 2010 21:35:00 +0000 (21:35 +0000)
tools/vgchange.c

index 074aa38f21f8d606d6d8c77b81d8bcf7071773d2..1d3e321093da30b8fbbf7dbe87f96461fbcd0395 100644 (file)
@@ -528,7 +528,7 @@ static int _vgchange_refresh(struct cmd_context *cmd, struct volume_group *vg)
 static int _vgchange_metadata_copies(struct cmd_context *cmd,
                                     struct volume_group *vg)
 {
-       uint32_t mda_copies;
+       uint32_t mda_copies = DEFAULT_VGMETADATACOPIES;
 
        if (arg_count(cmd, vgmetadatacopies_ARG))
                mda_copies = arg_uint_value(cmd, vgmetadatacopies_ARG,
This page took 0.040504 seconds and 5 git commands to generate.