vollistpart-init-error-20070927
authorDan Hyde <drh@umich.edu>
Fri, 28 Sep 2007 00:15:30 +0000 (00:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 28 Sep 2007 00:15:30 +0000 (00:15 +0000)
FIXES 72144

correct an initialization failure in VolListPartitions

src/volser/volprocs.c

index 1b772b8..f421b47 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;