Commit 2b3a3316 by Celine Mercier

Changed the behaviour if trying to realloc a memory chunk of size 0 to

be consistent across systems (an error would be generated on Ubuntu when
no primers found)
parent a75191bb
......@@ -54,8 +54,14 @@ void *eco_realloc(void *chunk,
void *newchunk;
newchunk = realloc(chunk,newsize);
if (newsize == 0)
if (chunk)
return NULL;
newchunk = realloc(chunk,newsize);
if (!newchunk)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment