Ignore:
Timestamp:
11/29/18 10:12:59 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
fdf23b8
Parents:
d74ca03
Message:

Apply changes required for pull request #81

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/vector.c

    r0a474e3 r2193905  
    5454                v->max_size *= 2;
    5555                v->elements = realloc(v->elements, v->max_size * v->element_size);
    56                 /*assert(v->elements);*/
    5756                if (!v->elements) {
    5857                        fprintf(stderr, "Unable to allocate memory for v->elements in libtrace_vector_push_back()\n");
     
    108107DLLEXPORT void libtrace_vector_append(libtrace_vector_t *dest, libtrace_vector_t *src)
    109108{
    110         /*assert(dest->element_size == src->element_size);*/
    111109        if (dest->element_size != src->element_size) {
    112110                fprintf(stderr, "Elements must be the same size in libtrace_vector_append()\n");
Note: See TracChangeset for help on using the changeset viewer.