master - report: use proper string reference in _string_disp call for _cache_policy_disp fn

Peter Rajnoha <[email protected]>
Newsgroups dev.linux.lists.lvm-devel
Message-ID <[email protected]>
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=176b4aaebeb8b885d5df16172a5bc32481beda59
Commit:        176b4aaebeb8b885d5df16172a5bc32481beda59
Parent:        1a3ee6402ecf761554040a551f6c7f52b92f73ca
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Tue Jan 12 16:13:56 2016 +0100
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Tue Jan 12 16:14:23 2016 +0100

report: use proper string reference in _string_disp call for _cache_policy_disp fn

---
 lib/report/report.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/report/report.c b/lib/report/report.c
index 17aa5c0..9f44212 100644
--- a/lib/report/report.c
+++ b/lib/report/report.c
@@ -1429,7 +1429,7 @@ static int _cache_policy_disp(struct dm_report *rh, struct dm_pool *mem,
 		return 0;
 	}
 
-	return _string_disp(rh, mem, field, seg->policy_name, private);
+	return _string_disp(rh, mem, field, &seg->policy_name, private);
 }
 
 static int _modules_disp(struct dm_report *rh, struct dm_pool *mem,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.