Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2005-07-20 07:49:36 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-07-20 07:49:36 +0400
commitca1873df56db3a28fd650b132bdf74b992d0232c (patch)
treec366185236fe58dd6ad1de8f6ba105b27a766d4b /intern/guardedalloc
parentba28fc489aab45968152153dd46e87a8a11f7e64 (diff)
- remove MEM_dupallocN's warning on dup of len==0 sized object
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r--intern/guardedalloc/intern/mallocn.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c
index 83bd1f59161..6bc334d391e 100644
--- a/intern/guardedalloc/intern/mallocn.c
+++ b/intern/guardedalloc/intern/mallocn.c
@@ -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;