From db2ed13359ce8e3cd6a4981f8ce8e10ba61f6463 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Wed, 4 Sep 2013 15:10:16 -0400 Subject: [PATCH] volscan: avoid printing null mount-point cellname The 'mcell' field is null when there is no cell set in the mount point, so do not try to print it. Change-Id: I363310665313f7bbcca783a4d9be87aaa7b0a8fe Reviewed-on: http://gerrit.openafs.org/10226 Reviewed-by: D Brashear Tested-by: D Brashear --- src/vol/vol-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vol/vol-info.c b/src/vol/vol-info.c index 0c8b2d1d1..8ba8c7af8 100644 --- a/src/vol/vol-info.c +++ b/src/vol/vol-info.c @@ -2495,7 +2495,7 @@ PrintColumns(struct VnodeDetails *vdp, const char *desc) break; case col_mcell: printf("%s", - (vdp->t == VNODE_U_MOUNT ? vdp->u.mnt.cell : PLACEHOLDER)); + (vdp->t == VNODE_U_MOUNT && vdp->u.mnt.cell ? vdp->u.mnt.cell : PLACEHOLDER)); break; case col_mvol: printf("%s", -- 2.39.5