Ignore:
Timestamp:
Nov 18, 2016, 5:31:43 PM (7 years ago)
Author:
Bruno Cornec
Message:

mr_strip_spaces now returns a dynamically allocated string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c

    r3613 r3614  
    140140    fatal_error("Cannot openin outfname");
    141141}
    142 for (mr_getline(incoming, fin); !feof(fin) && (incoming != NULL); mr_getline(incoming, fin)) {
    143     mr_strip_spaces(incoming);
     142for (mr_getline(p, fin); !feof(fin) && (p != NULL); mr_getline(p, fin)) {
     143    incoming = mr_strip_spaces(p);
     144    mr_free(p);
    144145
    145146    if (incoming[0] == '\0') {
Note: See TracChangeset for help on using the changeset viewer.