diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2017-04-02 13:41:01 +0200 |
---|---|---|
committer | Tobias Stoeckmann <tobias@stoeckmann.org> | 2017-04-02 13:41:01 +0200 |
commit | b95c1ea6b2ff06ed01bee93a623141b2ab692470 (patch) | |
tree | 2ee4e272218f57a4cf65bc285481ff5ffd440ba5 /src/thumbnail.c | |
parent | a5e60401f9dce39f7f1bcf53ede508c63f5d2ad3 (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 'src/thumbnail.c')
0 files changed, 0 insertions, 0 deletions