1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Check pointer before deref in debug message

This commit is contained in:
Zdenek Kabelac 2012-03-01 21:58:55 +00:00
parent d27834ff0a
commit 17c3bf7b22

View File

@ -1110,8 +1110,8 @@ static int _lvmcache_update_vgid(struct lvmcache_info *info,
if (!is_orphan_vg(vginfo->vgname))
log_debug("lvmcache: %s: setting %s VGID to %s",
dev_name(info->dev), vginfo->vgname,
vginfo->vgid);
(info) ? dev_name(info->dev) : "",
vginfo->vgname, vginfo->vgid);
return 1;
}