repo.or.cz
/
dockapps.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add support for choosing first cpuid
[dockapps.git]
/
wmweather+
/
b0rken
/
malloc.c
blob
67b7494538446a0d06e7b07e037ce08f6bb4232f
1
/* Version of malloc that avoids the malloc(0) bug */
2
3
#if HAVE_CONFIG_H
4
# include
"config.h"
5
#endif
6
#undef malloc
7
8
#include <sys/types.h>
9
10
void
*
malloc
();
11
12
void
*
rpl_malloc
(
size_t
size
){
13
if
(
size
==
0
)
size
=
1
;
14
return
malloc
(
size
);
15
}