diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 18:46:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 18:46:45 +0000 |
commit | 2ebd6ca61ce9d49352ee0135f6ed05a24c08a505 (patch) | |
tree | 8c31e0288e21b4a33932d698c35249a9aea5339b /sys/fs/nullfs | |
parent | ed8b540a0cf2bb66e86b249e597b2cd08589ea76 (diff) | |
download | FreeBSD-src-2ebd6ca61ce9d49352ee0135f6ed05a24c08a505.zip FreeBSD-src-2ebd6ca61ce9d49352ee0135f6ed05a24c08a505.tar.gz |
Use temporary variable to avoid double expansion of macro with side effects.
Found by: FlexeLint
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r-- | sys/fs/nullfs/null_vfsops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index d6ca211..6ace172 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -391,7 +391,10 @@ nullfs_vptofh(vp, fhp) struct vnode *vp; struct fid *fhp; { - return VFS_VPTOFH(NULLVPTOLOWERVP(vp), fhp); + struct vnode *lvp; + + lvp = NULLVPTOLOWERVP(vp); + return VFS_VPTOFH(lvp, fhp); } static int |