dockapps/wmweather+-2.12/b0rken/malloc.c
Carlos R. Mafra 21625f40b5 Initial dockapps git repo
I tried to get the latest versions from dockapps.org, but I haven't
tested any of them.

More dockapps will be added as time permits.
2011-03-25 19:45:13 +01:00

16 lines
239 B
C

/* Version of malloc that avoids the malloc(0) bug */
#if HAVE_CONFIG_H
# include "config.h"
#endif
#undef malloc
#include <sys/types.h>
void *malloc();
void *rpl_malloc(size_t size){
if(size==0) size=1;
return malloc(size);
}