summaryrefslogtreecommitdiff
path: root/test/imlib2-bug-notice
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2017-04-02 13:41:01 +0200
committerTobias Stoeckmann <tobias@stoeckmann.org>2017-04-02 13:41:01 +0200
commitb95c1ea6b2ff06ed01bee93a623141b2ab692470 (patch)
tree2ee4e272218f57a4cf65bc285481ff5ffd440ba5 /test/imlib2-bug-notice
parenta5e60401f9dce39f7f1bcf53ede508c63f5d2ad3 (diff)
Check malloc return value for NULL.
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>
Diffstat (limited to 'test/imlib2-bug-notice')
0 files changed, 0 insertions, 0 deletions