Changeset 3279 in MondoRescue for branches/3.2/mondo/src/common/libmondo-mountlist.c
- Timestamp:
- Apr 30, 2014, 1:05:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-mountlist.c
r3263 r3279 556 556 drivelist = malloc(sizeof(struct list_of_disks)); 557 557 assert(mountlist != NULL); 558 mr_asprintf(flaws_str, "%s", "");559 558 560 559 make_list_of_drives_in_mountlist(mountlist, drivelist); … … 573 572 if (tmp != NULL) { 574 573 log_msg(8,"Adding: %s to flaws_str", tmp); 575 mr_strcat(flaws_str, "%s", tmp); 574 if (flaws_str != NULL) { 575 mr_strcat(flaws_str, "%s", tmp); 576 } else { 577 mr_asprintf(flaws_str, "%s", tmp); 578 } 576 579 mr_free(tmp); 577 580 } … … 591 594 if (copies > 1 && last_copy == currline && strcmp(curr_mountpoint, "raid")) { 592 595 mr_asprintf(tmp, " %s %s's.", number_to_text(copies), curr_mountpoint); 593 mr_strcat(flaws_str, "%s", tmp);594 596 log_msg(8,"Adding: %s to flaws_str", tmp); 597 if (flaws_str != NULL) { 598 mr_strcat(flaws_str, "%s", tmp); 599 } else { 600 mr_asprintf(flaws_str, "%s", tmp); 601 } 595 602 mr_free(tmp); 596 603 } 597 604 mr_free(curr_mountpoint); 598 605 } 599 600 606 return(flaws_str); 601 607 }
Note:
See TracChangeset
for help on using the changeset viewer.