From 3638c05ec95e0fa445f06b05567189b712a0b8a9 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Sat, 8 Aug 2015 17:31:36 +0100 Subject: [PATCH] libdm: do not attempt to output column headings with --rows Columns-as-rows output does not use _report_headings(); don't try to call it when rh->flags & DM_REPORT_OUTPUT_COLUMNS_AS_ROWS. --- libdm/libdm-report.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index de87ca468..17a7e13b2 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -3994,6 +3994,9 @@ static int _report_headings(struct dm_report *rh) int dm_report_column_headings(struct dm_report *rh) { + /* Columns-as-rows does not use _report_headings. */ + if (rh->flags & DM_REPORT_OUTPUT_COLUMNS_AS_ROWS) + return 1; return _report_headings(rh); }