[PATCH 05/30] Print vg_name and do not to access vg->name
Zdenek Kabelac <[email protected]>
| Newsgroups | dev.linux.lists.lvm-devel |
|---|---|
| Message-ID | <4ed74f138478e118c6a7e418aa638d72c913d4d3.1287994529.git.zkabelac@redhat.com> |
clang Logic error Dereference of null pointer Replacing pointer access with vg_name. Signed-off-by: Zdenek Kabelac <[email protected]> --- tools/pvresize.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/pvresize.c b/tools/pvresize.c index ccd025a..af499e5 100644 --- a/tools/pvresize.c +++ b/tools/pvresize.c @@ -148,7 +148,7 @@ static int _pv_resize_single(struct cmd_context *cmd, if (!is_orphan_vg(vg_name)) { if (!vg_write(vg) || !vg_commit(vg)) { log_error("Failed to store physical volume \"%s\" in " - "volume group \"%s\"", pv_name, vg->name); + "volume group \"%s\"", pv_name, vg_name); goto out; } backup(vg); -- 1.7.3.1