- remove MEM_dupallocN's warning on dup of len==0 sized object

This commit is contained in:
Daniel Dunbar
2005-07-20 03:49:36 +00:00
parent ba28fc489a
commit ca1873df56

View File

@@ -167,11 +167,8 @@ void *MEM_dupallocN(void *vmemh)
MemHead *memh= vmemh;
memh--;
if (memh->len) {
newp= MEM_mallocN(memh->len, "dupli_alloc");
memcpy(newp, vmemh, memh->len);
} else
if (err_stream) fprintf(err_stream, "error: MEM_dupallocN with len==0 %s\n", memh->name);
newp= MEM_mallocN(memh->len, "dupli_alloc");
memcpy(newp, vmemh, memh->len);
}
return newp;