mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: there is no element in item 0
Items[0] holds only counter in .len.
So don't zero already zeroed items[0].len assigned above.
(finishing fc935495c8
)
This commit is contained in:
parent
fb220314ec
commit
8bc7b4f926
@ -393,8 +393,6 @@ static int _report_field_string_list(struct dm_report *rh,
|
|||||||
/* zero items */
|
/* zero items */
|
||||||
if (!list_size) {
|
if (!list_size) {
|
||||||
sort_value->value = field->report_string = "";
|
sort_value->value = field->report_string = "";
|
||||||
sort_value->items[0].pos = 0;
|
|
||||||
sort_value->items[0].len = 0;
|
|
||||||
field->sort_value = sort_value;
|
field->sort_value = sort_value;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user