]> sourceware.org Git - lvm2.git/commitdiff
Fix regression from cleanup commit
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 23 Feb 2012 19:03:48 +0000 (19:03 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 23 Feb 2012 19:03:48 +0000 (19:03 +0000)
baton is being modified, so needs to be cleared before each use.

lib/cache/lvmetad.c

index 5fedfd5812229e27352030a3055b68baf6f6828a..f82576513ede0bd51d11c0cc935dbc5503a82d17 100644 (file)
@@ -229,7 +229,7 @@ int lvmetad_vg_update(struct volume_group *vg)
        char mda_id[128], *num;
        struct pv_list *pvl;
        struct lvmcache_info *info;
-       struct _fixup_baton baton = { .i = 0 };
+       struct _fixup_baton baton;
 
        if (!vg)
                return 0;
@@ -264,6 +264,7 @@ int lvmetad_vg_update(struct volume_group *vg)
                        *num = 0;
                        ++num;
                        if ((info = lvmcache_info_from_pvid(mda_id, 0))) {
+                               memset(&baton, 0, sizeof(baton));
                                baton.find = atoi(num);
                                baton.ignore = mda_is_ignored(mda);
                                lvmcache_foreach_mda(info, _fixup_ignored, &baton);
This page took 0.031719 seconds and 5 git commands to generate.