From 8c9a1d6a3d9ab42b220b34b90e49d4f6f5c51d80 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 21 Dec 2004 16:12:02 +0000 Subject: [PATCH] Fix pvchange -x segfault with lvm2-format orphan. --- WHATS_NEW | 1 + tools/pvchange.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index b910b7f95..631a693b6 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.00.32 - ==================================== + Fix pvchange -x segfault with lvm2-format orphan. Cope with empty msdos partition tables. Version 2.00.31 - 12th December 2004 diff --git a/tools/pvchange.c b/tools/pvchange.c index 71b9992be..c54b35608 100644 --- a/tools/pvchange.c +++ b/tools/pvchange.c @@ -32,6 +32,8 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv, int allocatable = 0; int tagarg = 0; + list_init(&mdas); + if (arg_count(cmd, addtag_ARG)) tagarg = addtag_ARG; else if (arg_count(cmd, deltag_ARG))