Ignore:
Timestamp:
Sep 17, 2009, 3:45:24 AM (15 years ago)
Author:
Bruno Cornec
Message:

Removes some malloc_string static allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondorestore/mondo-prep.c

    r2383 r2405  
    6161{
    6262    char *command = NULL;
    63     char *tmp;
    6463    int lino;
    6564    int i;
     
    7271// If LVMs are present and a zero-and-reboot wasn't recently undertaken
    7372// then zero & insist on reboot.
    74     malloc_string(tmp);
    7573    buf = malloc(blocksize);
    7674    if (does_file_exist("/tmp/i-want-my-lvm"))  // FIXME - cheating :)
     
    9189        if (lino == drivelist->entries) {
    9290// zero & reboot
    93             log_to_screen
    94                 ("I am sorry for the inconvenience but I must ask you to reboot.");
    95             log_to_screen
    96                 ("I need to reset the Master Boot Record; in order to be");
    97             log_to_screen
    98                 ("sure the kernel notices, I must reboot after doing it.");
     91            log_to_screen("I am sorry for the inconvenience but I must ask you to reboot.");
     92            log_to_screen("I need to reset the Master Boot Record; in order to be");
     93            log_to_screen("sure the kernel notices, I must reboot after doing it.");
    9994            log_to_screen("Please hit 'Enter' to reboot.");
    10095            for (lino = 0; lino < drivelist->entries; lino++) {
     
    127122    }
    128123// Still here? Cool!
    129     paranoid_free(tmp);
    130124    log_msg(1, "Cool. I didn't have to wipe anything.");
    131125}
Note: See TracChangeset for help on using the changeset viewer.