Changeset 3723 in MondoRescue


Ignore:
Timestamp:
Nov 5, 2019, 2:24:25 AM (4 years ago)
Author:
Bruno Cornec
Message:

Fix #850 when string analyzed is empty

File:
1 edited

Legend:

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

    r3641 r3723  
    179179    instr++;
    180180}
     181
     182if (*instr != '\0') {
     183    mr_asprintf(outstr, "");
     184    return(outstr);
     185}
     186
    181187mr_asprintf(outstr, "%s", instr);
    182 q = outstr + strlen(outstr) -1;
     188q = outstr + strlen(outstr) - 1;
    183189
    184190/* Skip final spaces and special chars */
Note: See TracChangeset for help on using the changeset viewer.