]> sourceware.org Git - lvm2.git/commitdiff
initialise log_allocated to 0
authorAlasdair Kergon <agk@redhat.com>
Thu, 1 Apr 2010 12:29:07 +0000 (12:29 +0000)
committerAlasdair Kergon <agk@redhat.com>
Thu, 1 Apr 2010 12:29:07 +0000 (12:29 +0000)
lib/metadata/lv_manip.c

index 198c8a2108df5afe5ee52966718d636c65067a6d..39ca998d7b2ac0ca43d0aca1395c6576cc143617 100644 (file)
@@ -1268,7 +1268,7 @@ static int _allocate(struct alloc_handle *ah,
        uint32_t areas_size;
        alloc_policy_t alloc;
        struct alloced_area *aa;
-       unsigned log_allocated;
+       unsigned log_allocated = 0;
 
        if (allocated >= ah->new_extents && !ah->log_area_count) {
                log_error("_allocate called with no work to do!");
This page took 0.038699 seconds and 5 git commands to generate.