1
0
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:
Zdenek Kabelac 2014-11-24 14:37:11 +01:00
parent fb220314ec
commit 8bc7b4f926

View File

@ -393,8 +393,6 @@ static int _report_field_string_list(struct dm_report *rh,
/* zero items */
if (!list_size) {
sort_value->value = field->report_string = "";
sort_value->items[0].pos = 0;
sort_value->items[0].len = 0;
field->sort_value = sort_value;
return 1;
}