Revision 10ddaca7 src/ChunkBuffer/buffer.c

View differences:

src/ChunkBuffer/buffer.c
106 106
    free(cb);
107 107
    return NULL;
108 108
  }
109
  memset(cb->buffer, 0, cb->size);
109
  memset(cb->buffer, 0, sizeof(struct chunk) * cb->size);
110 110
  for (i = 0; i < cb->size; i++) {
111 111
    cb->buffer[i].id = -1;
112 112
  }

Also available in: Unified diff