]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-vollistpart-init-error-20070927
authorDan Hyde <drh@umich.edu>
Wed, 7 May 2008 18:52:46 +0000 (18:52 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 7 May 2008 18:52:46 +0000 (18:52 +0000)
FIXES 72144

correct an initialization failure in VolListPartitions

(cherry picked from commit aecaddba376c5e2f15a7cb52f1777b07546695d4)

src/volser/volprocs.c

index bbab80663cbf7a43ceac04cf53474513d61162d2..37c0972b387f61372ecb60825f1f62099ed6be9a 100644 (file)
@@ -1658,8 +1658,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;