hdt: Don't show partition header if not needed
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Thu, 6 Aug 2009 02:19:59 +0000 (19:19 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Thu, 6 Aug 2009 02:26:49 +0000 (19:26 -0700)
commit22a679c93b85c064844b0a12cb1e59eba1cf4aa4
tree892162689773a3870b91e718fb6f1a4b3efb3e51
parentf8ac660c0fae6328bde62164f8f01b17b9dc5522
hdt: Don't show partition header if not needed

Don't blindly print the partition header: check if we are able to iterate
through them first.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/hdt/hdt-cli-disk.c
com32/hdt/hdt-menu-disk.c