readchar fix
[vde.git] / vde-2 / utils / malloc.c
blob86c6b3b8417a064bd20232d7ef47cf4b537cbf52
2 #if HAVE_CONFIG_H
3 # include <config.h>
4 #endif
5 #undef malloc
7 #include <sys/types.h>
9 void *malloc ();
11 /* Allocate an N-byte block of memory from the heap.
12 If N is zero, allocate a 1-byte block. */
14 void *
15 rpl_malloc (size_t n)
17 if (n == 0)
18 n = 1;
19 return malloc (n);