exec.library: return NULL for 0-sized allocation regardless of memory manager used
commit7c8548ee26cdb9152c9c5edbb352936eee517409
authordeadwood <deadwood@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 3 Jun 2014 16:40:14 +0000 (3 16:40 +0000)
committerdeadwood <deadwood@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 3 Jun 2014 16:40:14 +0000 (3 16:40 +0000)
treed8fd88e275c7b96239df9657197b27f094de52a2
parent6ee96a8590b9f4034400e61ddf87ae69aaabef26
exec.library: return NULL for 0-sized allocation regardless of memory manager used

This follows the API guarantees as tested on OS 3.x, OS 4.x and MorphOS

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@49043 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
rom/exec/allocmem.c
rom/exec/allocpooled.c
rom/exec/allocvec.c
rom/exec/allocvecpooled.c
rom/exec/freemem.c
rom/exec/freepooled.c
rom/exec/freevec.c
rom/exec/freevecpooled.c
test/exec/allocxxx.c [new file with mode: 0644]
test/exec/mmakefile.src
test/exec/test.h [new file with mode: 0644]