Changeset 1140 in MondoRescue for branches/stable/mondo/src/test/test-mem.c


Ignore:
Timestamp:
Feb 12, 2007, 2:05:43 AM (17 years ago)
Author:
Bruno Cornec
Message:

Try to fix some valgrind reports (note that this version still doesn't work)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/test/test-mem.c

    r1139 r1140  
    1616int main(void)
    1717{
    18     char* str = NULL;
     18    char *str = NULL;
    1919    FILE *fd = NULL;
    2020    size_t n = 0;
     
    3737    mr_getline(&str,&n,fd);
    3838    printf("2nd Result: %s",str);
     39    mr_getline(&str,&n,fd);
     40    strcpy(str,"another line\n");
     41    printf("3rd Result: %s",str);
    3942    mr_free(str);
    4043
Note: See TracChangeset for help on using the changeset viewer.