]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-vollistpart-init-error-20070927
authorDan Hyde <drh@umich.edu>
Fri, 28 Sep 2007 00:17:21 +0000 (00:17 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 28 Sep 2007 00:17:21 +0000 (00:17 +0000)
FIXES 72144

correct an initialization failure in VolListPartitions

(cherry picked from commit aecaddba376c5e2f15a7cb52f1777b07546695d4)

src/volser/volprocs.c

index 1b772b8e7ada8f15a085e5d79f7b8edb19f5b1ff..f421b473ebe40f3ee3a56bab5b20de65d3010b1d 100644 (file)
@@ -1650,8 +1650,7 @@ VolListPartitions(struct rx_call *acid, struct pIDs *partIds)
     namehead[7] = '\0';
     for (i = 0; i < 26; i++) {
        namehead[6] = i + 'a';
-       if (VGetPartition(namehead, 0))
-           partIds->partIds[i] = VGetPartition(namehead, 0) ? i : -1;
+       partIds->partIds[i] = VGetPartition(namehead, 0) ? i : -1;
     }
 
     return 0;