Ignore:
Timestamp:
May 6, 2007, 1:55:53 AM (14 years ago)
Author:
Bruno Cornec
Message:

Fix a bug for allocation (pointer manipulation again - Thanks again Michel Loiseleur :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-stream.c

    r1370 r1392  
    639639
    640640    assert_string_is_neither_NULL_nor_zerolength(bkpinfo->media_device);
    641     mr_list_alloc(tapecatalog);
     641    tapecatalog = mr_list_alloc();
    642642    g_tape_posK = 0;
    643643    if (g_tape_stream) {
     
    735735    /*  initialise the catalog */
    736736    g_current_media_number = 1;
    737     mr_list_alloc(tapecatalog);
     737    tapecatalog = mr_list_alloc();
    738738    /* log stuff */
    739739    log_it("Opening OUT cdstream with the command");
     
    765765        return (0);
    766766    }
    767     mr_list_alloc(tapecatalog);
     767    tapecatalog = mr_list_alloc();
    768768    g_tape_posK = 0;
    769769
     
    10801080
    10811081    /* place the data in a list elt */
    1082     mr_list_alloc_elt(elt, (void *)te, mr_free_te);
     1082    elt = mr_list_alloc_elt((void *)te, mr_free_te);
    10831083    mr_list_add_elt_last(tapecatalog, elt);
    10841084
Note: See TracChangeset for help on using the changeset viewer.