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/common/libmondo-devices.c

    r2400 r2405  
    14071407    char *tmp = NULL;
    14081408    char *p = NULL;
    1409     char *tmp1 = NULL;
    14101409    char *mds = NULL;
    14111410    char *sz_size = NULL;
    14121411    char *command = NULL;
    14131412    char *comment = NULL;
    1414     char *prompt;
    14151413    int i;
    14161414    FILE *fin;
    14171415
    1418     malloc_string(prompt);
    1419     malloc_string(tmp1);
    14201416    assert(bkpinfo != NULL);
    14211417    bkpinfo->nonbootable_backup = FALSE;
     
    14561452        if (archiving_to_media) {
    14571453            if ((bkpinfo->backup_media_type != dvd) && (bkpinfo->backup_media_type != usb)) {
    1458                 if (ask_me_yes_or_no
    1459                     ("Is your computer a laptop, or does the CD writer incorporate BurnProof technology?"))
    1460                 {
     1454                if (ask_me_yes_or_no("Is your computer a laptop, or does the CD writer incorporate BurnProof technology?")) {
    14611455                    bkpinfo->manual_cd_tray = TRUE;
    14621456                }
    14631457            }
    1464             if ((bkpinfo->compression_level =
    1465                  which_compression_level()) == -1) {
     1458            if ((bkpinfo->compression_level = which_compression_level()) == -1) {
    14661459                log_to_screen("User has chosen not to backup the PC");
    14671460                finish(1);
     
    14951488            mr_free(comment);
    14961489
    1497             bkpinfo->cdrw_speed = atoi(tmp1);   // if DVD then this shouldn't ever be used anyway :)
     1490            bkpinfo->cdrw_speed = atoi(tmp);    // if DVD then this shouldn't ever be used anyway :)
     1491            mr_free(tmp);
    14981492
    14991493            mr_asprintf(comment, "How much data (in Megabytes) will each %s store?", mds);
     
    20222016    }
    20232017    paranoid_free(sz_size);
    2024     paranoid_free(tmp1);
    2025     paranoid_free(prompt);
    20262018    return (0);
    20272019}
Note: See TracChangeset for help on using the changeset viewer.