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-fork.c

    r2392 r2405  
    9595 * @return Exit code of @c mkisofs (0 is success, anything else indicates failure).
    9696 */
    97 int
    98 eval_call_to_make_ISO(char *basic_call, char *isofile, int cd_no, char *what_i_am_doing) {
     97int eval_call_to_make_ISO(char *basic_call, char *isofile, int cd_no, char *what_i_am_doing) {
    9998
    10099    /*@ int's  *** */
     
    106105    char *ultimate_call = NULL;
    107106    char *tmp = NULL;
    108     char *incoming, *old_stderr;
    109107       
    110108    char *cd_number_str = NULL;
     
    119117    assert(bkpinfo != NULL);
    120118    assert_string_is_neither_NULL_nor_zerolength(isofile);
    121     malloc_string(incoming);
    122     malloc_string(old_stderr);
    123 
    124     incoming[0] = '\0';
    125     old_stderr[0] = '\0';
    126119
    127120    if ((bkpinfo->netfs_user) && (strstr(bkpinfo->netfs_proto,"nfs"))) {
     
    187180    }
    188181    mr_free(command);
    189     paranoid_free(incoming);
    190     paranoid_free(old_stderr);
    191182    return (retval);
    192183}
Note: See TracChangeset for help on using the changeset viewer.