Sigh :( Fixed over two years ago.
modutils Changelog. 2001-05-06 modutils 2.4.6
* Do not assume that malloc(0) returns a pointer. Bug report by
Kiichiro Naka, different fix by Keith Owens.
void *
xmalloc(size_t size)
{
void *ptr = malloc(size ? size : 1);
if (!ptr)
{
error("Out of memory");
exit(1);
}
return ptr;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/