summaryrefslogtreecommitdiff
path: root/source4/ntvfs/smb2
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/smb2')
-rw-r--r--source4/ntvfs/smb2/vfs_smb2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/ntvfs/smb2/vfs_smb2.c b/source4/ntvfs/smb2/vfs_smb2.c
index 6fc0d42b02..ff02eed994 100644
--- a/source4/ntvfs/smb2/vfs_smb2.c
+++ b/source4/ntvfs/smb2/vfs_smb2.c
@@ -182,9 +182,9 @@ static NTSTATUS cvfs_connect(struct ntvfs_module_context *ntvfs,
}
if (strncmp(sharename, "\\\\", 2) == 0) {
- char *p = strchr(sharename+2, '\\');
- if (p) {
- sharename = p + 1;
+ char *str = strchr(sharename+2, '\\');
+ if (str) {
+ sharename = str + 1;
}
}