diff options
author | Van de Bugger <van.de.bugger@gmail.com> | 2011-02-26 02:32:29 +0300 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-02-28 08:55:55 +1000 |
commit | e4387240c3c78014561fc2821cba5a944449599f (patch) | |
tree | 22b39dda6e2d42b0bf0981e6c258b018a4d60801 /.gitignore | |
parent | a9f39af2f4fa2add26d332914e500c6cfa57ef5d (diff) |
Consistent handling of memory allocation errors.
Macro `OOM' ("Out of memory") introduced for checking and reporting
memory allocation errors. The same macro is used in all the cases.
One check was missed in original source; fixed.
Changes after patch review:
1. `OOM' macro uses `do ... while (0)'.
2. `exit(-1)', not `abort()'.
Signed-off-by: Van de Bugger <van.de.bugger@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions