1189. [bug] On some systems, malloc(0) returns NULL, which
could cause the caller to report an out of memory
error. [RT #2398]
+1189. [bug] On some systems, malloc(0) returns NULL, which
+ could cause the caller to report an out of memory
+ error. [RT #2398]
+
1186. [bug] isc_hex_tobuffer(,,length = 0) failed to unget the
EOL token when reading to end of line.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mem.c,v 1.98.2.2 2001/10/12 01:17:37 marka Exp $ */
+/* $Id: mem.c,v 1.98.2.3 2002/01/23 03:09:31 marka Exp $ */
#include <config.h>
static void *
default_memalloc(void *arg, size_t size) {
UNUSED(arg);
+ if (size == 0)
+ size = 1;
return (malloc(size));
}