OSDN Git Service

Don't depend on vendor-defined calloc(n, 0) behavior.
authorPeter Jones <pjones@redhat.com>
Mon, 12 Jan 2015 19:15:24 +0000 (14:15 -0500)
committerPeter Jones <pjones@redhat.com>
Mon, 12 Jan 2015 19:15:24 +0000 (14:15 -0500)
commitea640b305066f22db08423e95a42f59b01aa5303
tree4c417c3d37ed71865ad9de706aa9762e69f62ccc
parent50830994ee8aa260ad91252352321bdb76640b30
Don't depend on vendor-defined calloc(n, 0) behavior.

If we don't have any boot variables, we know that 0 is free, so just
return that.

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