]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
volutil-partitionname2-r-return-value-20080701
authorDerrick Brashear <shadow@dementia.org>
Tue, 1 Jul 2008 19:33:26 +0000 (19:33 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Jul 2008 19:33:26 +0000 (19:33 +0000)
LICENSE IPL10

return 0 and not tbuffer on success since tbuffer is already returned via
a pointer

src/util/volparse.c

index bfa0110bd473631e3b36237f3ad8eaf0521a5728..1b69509abcda36e4c54f0b9740898ab3b7dc5ca2 100644 (file)
@@ -119,7 +119,7 @@ volutil_PartitionName2_r(afs_int32 part, char *tbuffer, size_t buflen)
     if (strlcat(tbuffer, tempString, buflen) >= buflen) {
        return -1;
     }
-    return tbuffer;
+    return 0;
 }
 
 #define BAD_VID "BAD VOLUME ID"