- Initialize variable in smbfs_rename() to silent compiler warning

- Fix smbfs_mkdir() return value (in case of error).

Reported by:	pho
This commit is contained in:
Davide Italiano 2013-03-09 13:05:21 +00:00
parent a92189b377
commit e346bd8177
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
/*