Changeset 3627 in MondoRescue for branches/3.3/mondo/src/lib/mr_str.c


Ignore:
Timestamp:
Dec 21, 2016, 3:16:35 PM (7 years ago)
Author:
Bruno Cornec
Message:

Remove a compilation warning on a cont pointer copied and used which doesn't please the compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/lib/mr_str.c

    r3614 r3627  
    168168char *mr_strip_spaces(const char *instr) {
    169169
    170 char *p = NULL;
    171170char *q = NULL;
    172171char *outstr = NULL;
     
    175174    return(NULL);
    176175}
    177 p = instr;
    178176
    179177/* Skip initial spaces and special chars */
    180 while (*p <= ' ' && *p != '\0') {
    181     p++;
    182 }
    183 mr_asprintf(outstr, "%s", p);
     178while (*instr <= ' ' && *instr != '\0') {
     179    instr++;
     180}
     181mr_asprintf(outstr, "%s", instr);
    184182q = outstr + strlen(outstr) -1;
    185183
Note: See TracChangeset for help on using the changeset viewer.