diff options
author | davide <davide@FreeBSD.org> | 2013-03-09 13:05:21 +0000 |
---|---|---|
committer | davide <davide@FreeBSD.org> | 2013-03-09 13:05:21 +0000 |
commit | f30e75d436ea279224e3f491fa7d4ea8f19cba68 (patch) | |
tree | 2f1a22e70f13dcee495ad202a2660b3e3d89cfe8 /sys/fs/smbfs/smbfs_vnops.c | |
parent | 63326e81a339a762e08d5303facf65cc9cea9b87 (diff) | |
download | FreeBSD-src-f30e75d436ea279224e3f491fa7d4ea8f19cba68.zip FreeBSD-src-f30e75d436ea279224e3f491fa7d4ea8f19cba68.tar.gz |
- Initialize variable in smbfs_rename() to silent compiler warning
- Fix smbfs_mkdir() return value (in case of error).
Reported by: pho
Diffstat (limited to 'sys/fs/smbfs/smbfs_vnops.c')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index 5570de9..6285dfd 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -580,6 +580,7 @@ smbfs_rename(ap) u_int16_t flags = 6; int error=0; + scred = NULL; /* Check for cross-device rename */ if ((fvp->v_mount != tdvp->v_mount) || (tvp && (fvp->v_mount != tvp->v_mount))) { @@ -730,7 +731,7 @@ smbfs_mkdir(ap) *ap->a_vpp = vp; out: smbfs_free_scred(scred); - return 0; + return error; } /* |