tools/firewire: nosy-dump: check for allocation failure
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 22 Oct 2012 13:17:17 +0000 (15:17 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 2 Dec 2012 19:10:18 +0000 (20:10 +0100)
commit6fa79bcaecdbb0eb417afbc7fb0a8fa204308b62
tree6be7fae45b04d900288c1ed70907fa97f2623cb3
parent9489e9dcae718d5fde988e4a684a0f55b5f94d17
tools/firewire: nosy-dump: check for allocation failure

Behavior of null pointer dereference is undefined in the C language.
Portably implement the desired behavior.

Reported-by: Yang Yeping <yangyeping_666@hotmail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
tools/firewire/nosy-dump.c