Re: [dev][libsl][PATCH] drw.c: Allocation success check, don't call die() on error
On 12 April 2013 16:56, Lorenzo Cogotti <miciamail_AT_hotmail.it> wrote:
> This commit modifies drw.c to avoid killing the application
> if an error occurs, the caller should be able to decide what to do
> on error situations, this hopefully improves code reusability on various
> projects. It also checks for calloc() to succeed before using the returned
> pointer, improving code reliability.
> Some minor and trivial style updates have been added, eliminating redundant
> calls to free() and avoiding if (!ptr) return; on simple one-liner functions.
Thanks, applied.
Best regards,
Anselm
Received on Sat Apr 27 2013 - 20:56:40 CEST
This archive was generated by hypermail 2.3.0
: Sat Apr 27 2013 - 21:00:07 CEST