+1
−1
Loading
chaosdorf.de/git has been discontinued. Please refer to git.chaosdorf.de instead.
If malloc cannot allocate enough memory, it could return NULL. This is
not necessarily true for default Linux settings, but can be provoked
there as well by adjusting proc entries. Other systems like the *BSD
ones definitely do this.
The function _emalloc exists for exactly this purpose, so use it instead
of calling malloc directly.
Signed-off-by:
Tobias Stoeckmann <tobias@stoeckmann.org>