[parted-devel] [PATCH 21/24] ui: Fix command_line_get_disk_flag

Brian C. Lane bcl at redhat.com
Sat Nov 14 00:12:04 GMT 2020


It was using PedPartitionFlag instead of PedDiskFlag when walking the
available flags.
---
 parted/ui.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parted/ui.c b/parted/ui.c
index 7b5374d..8e1f2fe 100644
--- a/parted/ui.c
+++ b/parted/ui.c
@@ -1138,7 +1138,7 @@ command_line_get_disk_flag (const char* prompt, const PedDisk* disk,
                             PedDiskFlag* flag)
 {
         StrList*            opts = NULL;
-        PedPartitionFlag    walk = 0;
+        PedDiskFlag         walk = 0;
         char*               flag_name;
 
         while ( (walk = ped_disk_flag_next (walk)) ) {
-- 
2.26.2




More information about the parted-devel mailing list