OSDN Git Service

Test a couple of pointers for NULL-ness.
authorPeter Jones <pjones@redhat.com>
Mon, 12 Jan 2015 19:09:23 +0000 (14:09 -0500)
committerPeter Jones <pjones@redhat.com>
Mon, 12 Jan 2015 19:13:58 +0000 (14:13 -0500)
commit50830994ee8aa260ad91252352321bdb76640b30
tree10bcc876348423fa1f62c46f79a8956dc96e7db4
parent8ac7182b562e1e1d682a2b26e02552523912d431
Test a couple of pointers for NULL-ness.

In both of these cases buf is NULL if and only if the size is also 0,
and thus we'll fail the test anyway, but coverify isn't noticing that.
And I'm tired of talking to a piece of software about its deficiencies.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/lib/efi.c