Changeset 1161 in MondoRescue for trunk/mondo/src/common/libmondo-fork.c


Ignore:
Timestamp:
Feb 14, 2007, 1:13:49 PM (17 years ago)
Author:
Bruno Cornec
Message:

Update trunk with the latest feedback from stable (obtained with meld) - First pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/common/libmondo-fork.c

    r1086 r1161  
    6969
    7070    /*@ buffers      *** */
    71     char *midway_call, *ultimate_call, *tmp, *command,
    72         *cd_number_str;
    73     char *p;
     71    char *midway_call, *ultimate_call, *tmp;
     72    char *p = NULL;
     73    char *cd_number_str = NULL;
     74    char *command = NULL;
     75   
    7476
    7577/*@***********   End Variables ***************************************/
     
    8082    assert_string_is_neither_NULL_nor_zerolength(isofile);
    8183    assert_string_is_neither_NULL_nor_zerolength(logstub);
     84
    8285    midway_call = mr_malloc(1200);
    8386    ultimate_call = mr_malloc(1200);
     
    260263
    261264    /*@ buffers **************************************************** */
    262     char *tmp;
    263     char *command;
    264     char *lockfile;
     265    char *tmp = NULL;
     266    char *command = NULL;
     267    char *lockfile = NULL;
    265268
    266269    /*@ end vars *************************************************** */
     
    304307    res = pclose(fin);
    305308    /* Log actual pclose errors. */
    306     if (errno)
     309    if (errno) {
    307310        mr_msg(5, "pclose err: %d", errno);
     311    }
    308312    /* Check if we have a valid status. If we do, extract the called program's exit code. */
    309313    /* If we don't, highlight this fact by returning -1. */
     
    590594
    591595    /*@ buffers *********************************************************** */
    592     char *command;
     596    char *command = NULL;
    593597    /*@ pointers ********************************************************** */
    594598    static int chldres = 0;
Note: See TracChangeset for help on using the changeset viewer.