commit | de0715d5b06560904b45633cc6e01fe89d9f508b | [log] [tgz] |
---|---|---|
author | Michael Heimpold <michael.heimpold@i2se.com> | Tue Dec 18 14:47:16 2018 +0100 |
committer | Chris Ball <chris@printf.net> | Fri Oct 04 20:47:11 2019 -0400 |
tree | 17e4fbac885394029e4a3a314d3456d4b6d8dbbc | |
parent | d40ec535b9d4e4c974e8c2fbfb422cd0348cc5e8 [diff] |
Check calloc's return value before using the pointer If calloc fails, bail out immediately instead of trying to use the NULL pointer. Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com> Cc: Michael Heimpold <mhei@heimpold.de> Reviewed-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Chris Ball <chris@printf.net>