Revision d9b84c53 som/ChunkIDSet/chunkids_ops.c

View differences:

som/ChunkIDSet/chunkids_ops.c
33 33
  }
34 34
  if (p->size) {
35 35
    p->elements = malloc(p->size * sizeof(int));
36
    if (p->elements == NULL) {
37
      p->size = 0;
38
    }
36 39
  } else {
37 40
    p->elements = NULL;
38 41
  }

Also available in: Unified diff