Ignore:
Timestamp:
Jan 3, 2014, 5:44:07 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix again a dyn. memory allocation issue, where a variable wasn't initialized before mr_strcat was used.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-mountlist.c

    r3191 r3236  
    555555    drivelist = malloc(sizeof(struct list_of_disks));
    556556    assert(mountlist != NULL);
     557    mr_asprintf(flaws_str, "%s", "");
    557558
    558559    make_list_of_drives_in_mountlist(mountlist, drivelist);
     
    561562
    562563    for (i = 0; i < drivelist->entries; i++) {
    563         if (strstr
    564             (drivelist->el[i].device,
    565              DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE)) {
     564        if (strstr(drivelist->el[i].device, DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE)) {
    566565            log_it(" Not evaluating %s (I don't know how yet)", drivelist->el[i].device);
    567566        } else {
Note: See TracChangeset for help on using the changeset viewer.