CID 716921 (#1 of 1): Dereference after null check (FORWARD_NULL)
var_deref_model: Passing null pointer "dir" to function
"operator <<(std::ostream &, CDir &)", which dereferences it.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
dn = dir->lookup(p->first.first, p->first.second);
}
- if (!dn)
- dout(0) << " missing dentry for " << p->first.first << " snap " << p->first.second << " in " << *dir << dendl;
+ if (!dn) {
+ if (dir)
+ dout(0) << " missing dentry for " << p->first.first << " snap " << p->first.second << " in " << *dir << dendl;
+ else
+ dout(0) << " missing dentry for " << p->first.first << " snap " << p->first.second << dendl;
+ }
assert(dn);
if (nonce == dn->get_replica_nonce(from)) {