git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0847806
)
removed debug routines around malloc(0) handling.
author
kramm
<kramm>
Sun, 7 Nov 2004 17:03:29 +0000
(17:03 +0000)
committer
kramm
<kramm>
Sun, 7 Nov 2004 17:03:29 +0000
(17:03 +0000)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
beef81e
..
3a8a3ce
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-54,8
+54,8
@@
void* rfx_alloc(int size)
{
void*ptr;
if(size == 0) {
{
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;
}
return 0;
}
@@
-71,8
+71,8
@@
void* rfx_realloc(void*data, int size)
{
void*ptr;
if(size == 0) {
{
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;
}
rfx_free(data);
return 0;
}
@@
-93,8
+93,8
@@
void* rfx_calloc(int size)
{
void*ptr;
if(size == 0) {
{
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
return 0;
}
#ifdef HAVE_CALLOC