OSDN Git Service

libparted: allocate storage for diagnostic only when needed
authorJim Meyering <meyering@redhat.com>
Mon, 12 Apr 2010 08:13:18 +0000 (10:13 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 23 Apr 2010 17:53:14 +0000 (19:53 +0200)
commitc7c7d440a9d7e3549aaba4f8ff3a0324ae803999
tree256015545310868a93a493f6653e9c009784e5db
parent18bda4aa38083f12afa6e3f24deb6ad853b90f91
libparted: allocate storage for diagnostic only when needed

* libparted/arch/linux.c (_disk_sync_part_table): Rename local:
s/parts/bad_part_list/
Allocate space for it only if needed.
Use malloc rather than ped_malloc.
Move decl of FD down to first use.
libparted/arch/linux.c