diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-24 14:37:11 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-24 14:38:54 +0100 |
commit | 8bc7b4f926c8ae24c99391c39fc8e2a9fa55d80a (patch) | |
tree | 6db6d812d7f15ac4d6dd16b6c0afa4608a3d01f0 | |
parent | fb220314ec787bd8f0855b055e1b3bba7368dd26 (diff) | |
download | lvm2-8bc7b4f926c8ae24c99391c39fc8e2a9fa55d80a.tar.gz |
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 fc935495c813b7577ac8237459a2cc65ea291ac2)
-rw-r--r-- | libdm/libdm-report.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 470c2d191..a1bab056e 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -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; } |