Permalink
Browse files

Allocators never return NULL

  • Loading branch information...
1 parent 9d66ec1 commit a2064ad77d410983bc8f49a86dce8bbb8ae959be Caleb James DeLisle committed May 18, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 io/ArrayReader.c
View
@@ -35,10 +35,6 @@ struct Reader* ArrayReader_new(const void* bufferToRead,
struct ArrayReader_context* context =
allocator->calloc(sizeof(struct ArrayReader_context), 1, allocator);
- if (context == NULL || reader == NULL) {
- return NULL;
- }
-
context->pointer = (char*) bufferToRead;
context->endPointer = (char*) bufferToRead + length;

0 comments on commit a2064ad

Please sign in to comment.