Changeset 688 in MondoRescue for trunk/mondo/mondo/common/libmondo-string.c
- Timestamp:
- Jul 17, 2006, 3:44:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-string.c
r672 r688 33 33 * @note If @p drive ends in a digit, then 'p' (on Linux) or 's' (on *BSD) is added before @p partno. 34 34 */ 35 char *build_partition_name(c har *partition, const char *drive, int partno)35 char *build_partition_name(const char *drive, int partno) 36 36 { 37 37 char *p, *c; 38 39 assert(partition != NULL); 38 char *partition; 39 40 40 assert_string_is_neither_NULL_nor_zerolength(drive); 41 41 assert(partno >= 0); … … 537 537 538 538 /*@ buffers **************************************************** */ 539 char *output ;540 char *suffix ;539 char *output = NULL; 540 char *suffix = NULL; 541 541 542 542 /*@ end vars *************************************************** */ 543 543 544 544 assert_string_is_neither_NULL_nor_zerolength(path); 545 if (s[0] != '\0') { 545 546 if (s != NULL) { 546 547 asprintf(&suffix, ".%s", s); 547 548 } else { 548 asprintf(&suffix, "%s", " 549 asprintf(&suffix, "%s", ""); 549 550 } 550 551 asprintf(&output, "%s/slice-%07ld.%05ld.dat%s", path, bigfileno,
Note:
See TracChangeset
for help on using the changeset viewer.