OSDN Git Service

ui: rewrite disk_print_flags and partition_print_flags
authorJim Meyering <meyering@redhat.com>
Fri, 3 Feb 2012 14:55:19 +0000 (15:55 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 3 Feb 2012 15:44:36 +0000 (16:44 +0100)
commitf418609c79e97bffe41bb361cc6d07806c902e7f
tree231ab7dab87961eff22b8f86ac09d720f129a873
parenta1e09af3ad3d080056feb6a5aeb91af950a1c5e4
ui: rewrite disk_print_flags and partition_print_flags

* parted/parted.c (disk_print_flags): Avoid NULL-dereference on
failed malloc.  Use xrealloc, not ped_realloc.
(partition_print_flags): Likewise; nearly identical code.
parted/parted.c