mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Don't treat pointers as booleans.
This commit is contained in:
parent
de26549841
commit
4881a5950e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246905
@ -1949,11 +1949,11 @@ fdfree(struct thread *td)
|
||||
fdp->fd_jdir = NULL;
|
||||
FILEDESC_XUNLOCK(fdp);
|
||||
|
||||
if (cdir)
|
||||
if (cdir != NULL)
|
||||
vrele(cdir);
|
||||
if (rdir)
|
||||
if (rdir != NULL)
|
||||
vrele(rdir);
|
||||
if (jdir)
|
||||
if (jdir != NULL)
|
||||
vrele(jdir);
|
||||
|
||||
fddrop(fdp);
|
||||
|
Loading…
Reference in New Issue
Block a user