From: kramm Date: Sun, 7 Nov 2004 17:03:29 +0000 (+0000) Subject: removed debug routines around malloc(0) handling. X-Git-Tag: release-0-6-3~203 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=8af73868efc8821ce2ab97472fc8ebe5ad63f585 removed debug routines around malloc(0) handling. --- diff --git a/lib/rfxswf.c b/lib/rfxswf.c index beef81e..3a8a3ce 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -54,8 +54,8 @@ void* rfx_alloc(int size) { void*ptr; if(size == 0) { - *(int*)0 = 0xdead; - fprintf(stderr, "Warning: Zero alloc\n"); + //*(int*)0 = 0xdead; + //fprintf(stderr, "Warning: Zero alloc\n"); return 0; } @@ -71,8 +71,8 @@ void* rfx_realloc(void*data, int size) { void*ptr; if(size == 0) { - *(int*)0 = 0xdead; - fprintf(stderr, "Warning: Zero realloc\n"); + //*(int*)0 = 0xdead; + //fprintf(stderr, "Warning: Zero realloc\n"); rfx_free(data); return 0; } @@ -93,8 +93,8 @@ void* rfx_calloc(int size) { void*ptr; if(size == 0) { - *(int*)0 = 0xdead; - fprintf(stderr, "Warning: Zero alloc\n"); + //*(int*)0 = 0xdead; + //fprintf(stderr, "Warning: Zero alloc\n"); return 0; } #ifdef HAVE_CALLOC